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

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 {};