Revert this, we have a better way to do this.
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 23:47:12 +0000 (23:47 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 23:47:12 +0000 (23:47 +0000)
llvm-svn: 76687

clang/test/CXX/class/class.local/p3.cpp

index fa873d8..9c625d1 100644 (file)
@@ -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'}}
     };
   };
 }