[cfe-commits] r76687 - /cfe/trunk/test/CXX/class/class.local/p3.cpp

Mike Stump mrs at apple.com
Tue Jul 21 16:47:13 PDT 2009


Author: mrs
Date: Tue Jul 21 18:47:12 2009
New Revision: 76687

URL: http://llvm.org/viewvc/llvm-project?rev=76687&view=rev
Log:
Revert this, we have a better way to do this.

Modified:
    cfe/trunk/test/CXX/class/class.local/p3.cpp

Modified: cfe/trunk/test/CXX/class/class.local/p3.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/class/class.local/p3.cpp?rev=76687&r1=76686&r2=76687&view=diff

==============================================================================
--- cfe/trunk/test/CXX/class/class.local/p3.cpp (original)
+++ cfe/trunk/test/CXX/class/class.local/p3.cpp Tue Jul 21 18:47:12 2009
@@ -24,10 +24,7 @@
 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'}}
     };
   };
 }





More information about the cfe-commits mailing list