blob: 8295962411a39133f4506ea4b737a8c3881eec1e [file] [log] [blame]
// { 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;
}