2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / net12.C
blob59e062a788ad64a800080c7862c3900f6122ce5b
1 // { dg-do assemble  }
2 // { dg-options "-pedantic-errors" }
4 struct Foo {
5   char *p;
6   const char *q;
7   void m() const;
8 };
10 void other(char &x);    // { dg-error "" } reference below
12 void
13 Foo::m() const
15     other(*q);          // { dg-error "" } this is bad