Prep for new warning.

llvm-svn: 76627
This commit is contained in:
Mike Stump 2009-07-21 19:02:55 +00:00
parent c4e34f2d8b
commit 447351f1ff
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ void f()
extern int g();
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 k() { return :: x; }
int l() { return g(); }