Prep for new warning.

llvm-svn: 76628
This commit is contained in:
Mike Stump 2009-07-21 19:03:43 +00:00
parent 447351f1ff
commit f4464156cf
1 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,10 @@ 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'}}
int f() {
return a; // expected-error{{reference to local variable 'a' declared in enclosed function 'f3'}}
return 1;
}
};
};
}
}