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

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

index 565ddb8..8a84f5d 100644 (file)
@@ -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(); }