1 2 3 4 5 6 7 8 9 10 11 12
// { dg-do compile } // GROUPS passed old-abort extern int f(int); // { dg-error "ambiguates" } int& f(int x) // { dg-error "new declaration" } { int local; // { dg-warning "reference to local" } local = x+2; return local; }