Revert this, we have a better way to handle this.

llvm-svn: 76685
This commit is contained in:
Mike Stump 2009-07-21 23:45:39 +00:00
parent 90c67c6310
commit d8679446a3
1 changed files with 1 additions and 4 deletions

View File

@ -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(); }