repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* c-common.c (catenate_strings): New.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
incomplete1.C
blob
e43ca711ab3a577b1a918a579890cee7f50b331e
1
// { dg-do assemble }
2
// The reference parameter to fred isn't dereferenced properly.
3
4
class Gump {};
5
Gump operator & (const Gump x){return x;}
6
7
class B;
8
9
void *sam(int &x)
10
{return &x;}
11
12
const void *fred(const B& x)
13
{return &x;} // "&x" causes the compilation error.
14
15
class B {};