forked from OSchip/llvm-project
Revert this, we have a better way to handle this.
llvm-svn: 76685
This commit is contained in:
parent
90c67c6310
commit
d8679446a3
|
@ -8,10 +8,7 @@ void f()
|
|||
extern int g();
|
||||
|
||||
struct local {
|
||||
int g() {
|
||||
return x; // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}}
|
||||
return 1;
|
||||
}
|
||||
int g() { return x; } // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}}
|
||||
int h() { return s; }
|
||||
int k() { return :: x; }
|
||||
int l() { return g(); }
|
||||
|
|
Loading…
Reference in New Issue