From: Mike Stump Date: Tue, 21 Jul 2009 23:45:39 +0000 (+0000) Subject: Revert this, we have a better way to handle this. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f18de03d2193d79755921e428af62b0a3aef2312;p=clang Revert this, we have a better way to handle this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76685 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/class/class.local/p1.cpp b/test/CXX/class/class.local/p1.cpp index 565ddb8588..8a84f5dbed 100644 --- a/test/CXX/class/class.local/p1.cpp +++ b/test/CXX/class/class.local/p1.cpp @@ -8,10 +8,7 @@ void f() extern int g(); struct local { - int g() { - return x; // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} - return 1; - } + int g() { return x; } // expected-error{{reference to local variable 'x' declared in enclosed function 'f'}} int h() { return s; } int k() { return :: x; } int l() { return g(); }