parent
c4e34f2d8b
commit
447351f1ff
|
@ -8,7 +8,10 @@ void f()
|
||||||
extern int g();
|
extern int g();
|
||||||
|
|
||||||
struct local {
|
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 h() { return s; }
|
||||||
int k() { return :: x; }
|
int k() { return :: x; }
|
||||||
int l() { return g(); }
|
int l() { return g(); }
|
||||||
|
|
Loading…
Reference in New Issue