From: Mike Stump Date: Tue, 21 Jul 2009 23:47:12 +0000 (+0000) Subject: Revert this, we have a better way to do this. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e8221070954da06c52b27babf40561ea874c75e;p=clang Revert this, we have a better way to do this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76687 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class/class.local/p3.cpp b/test/CXX/class/class.local/p3.cpp index fa873d8af3..9c625d18c9 100644 --- a/test/CXX/class/class.local/p3.cpp +++ b/test/CXX/class/class.local/p3.cpp @@ -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'}} }; }; }