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