Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.old-deja / g++.jason / incomplete1.C
blobe43ca711ab3a577b1a918a579890cee7f50b331e
1 // { dg-do assemble  }
2 // The reference parameter to fred isn't dereferenced properly.
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 {};