OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
incomplete1.C
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 {};