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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
crash55.C
blob
3faa538253b29e6d938906c1bf7e21fd29edc06d
1
// { dg-do compile }
2
// GROUPS passed old-abort
3
extern int f(int); // { dg-message "old declaration" }
4
5
int& f(int x) // { dg-error "new declaration" }
6
{
7
int local; // { dg-warning "reference to local" }
8
9
local = x+2;
10
11
return local;
12
}