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'}}
     };
   };
 }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to