summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/incomplete1.C
blob: e43ca711ab3a577b1a918a579890cee7f50b331e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// The reference parameter to fred isn't dereferenced properly.

class Gump {};
Gump  operator &  (const Gump x){return x;}

class B;

void *sam(int &x)
{return &x;}

const void *fred(const B& x)
{return &x;}  // "&x" causes the compilation error.

class B {};