From: Mike Stump Date: Tue, 21 Jul 2009 19:03:43 +0000 (+0000) Subject: Prep for new warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0a6a0c29fb733b934930374554c84a83db5a790;p=clang Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76628 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class/class.local/p3.cpp b/test/CXX/class/class.local/p3.cpp index d888a6d936..fa873d8af3 100644 --- a/test/CXX/class/class.local/p3.cpp +++ b/test/CXX/class/class.local/p3.cpp @@ -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; + } }; }; -} \ No newline at end of file +}