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

llvm-svn: 76687
This commit is contained in:
Mike Stump 2009-07-21 23:47:12 +00:00
parent e61aff6df1
commit 0ab3c3deac
1 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ void f2() {
void f3(int a) { // expected-note{{'a' declared here}}
struct X {
struct Y {
int f() {
return a; // expected-error{{reference to local variable 'a' declared in enclosed function 'f3'}}
return 1;
}
int f() { return a; } // expected-error{{reference to local variable 'a' declared in enclosed function 'f3'}}
};
};
}