aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net12.C
blob: f27dd46c81bd0a34f73aa7a15bd92dd1d8a4b164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// { dg-options "-pedantic-errors" }

struct Foo {
  char *p;
  const char *q;
  void m() const;
};

void other(char &x);	// { dg-message "" } reference below

void
Foo::m() const
{
    other(*q);		// { dg-error "" } this is bad
}