summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net12.C
blob: 59e062a788ad64a800080c7862c3900f6122ce5b (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-error "" } reference below

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