parent
c4e34f2d8b
commit
447351f1ff
|
@ -8,7 +8,10 @@ void f()
|
|||
extern int g();
|
||||
|
||||
struct local {
|
||||
int g() { return x; } // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}}
|
||||
int g() {
|
||||
return x; // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}}
|
||||
return 1;
|
||||
}
|
||||
int h() { return s; }
|
||||
int k() { return :: x; }
|
||||
int l() { return g(); }
|
||||
|
|
Loading…
Reference in New Issue