FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / incomplete1.C
blob8b738d9f60651e94bae4bb8ed0ce0cb9acffe7a6
1 // The reference parameter to fred isn't dereferenced properly.
2 // Build don't link:
4 class Gump {};
5 Gump  operator &  (const Gump x){return x;}
7 class B;
9 void *sam(int &x)
10 {return &x;}
12 const void *fred(const B& x)
13 {return &x;}  // "&x" causes the compilation error.
15 class B {};