[llvm-branch-commits] [cfe-branch] r128365 - /cfe/branches/release_29/test/SemaCXX/goto.cpp

Bill Wendling isanbard at gmail.com
Sat Mar 26 18:17:09 PDT 2011


Author: void
Date: Sat Mar 26 20:17:09 2011
New Revision: 128365

URL: http://llvm.org/viewvc/llvm-project?rev=128365&view=rev
Log:
Merge r128168 to unbreak test.

Modified:
    cfe/branches/release_29/test/SemaCXX/goto.cpp

Modified: cfe/branches/release_29/test/SemaCXX/goto.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_29/test/SemaCXX/goto.cpp?rev=128365&r1=128364&r2=128365&view=diff
==============================================================================
--- cfe/branches/release_29/test/SemaCXX/goto.cpp (original)
+++ cfe/branches/release_29/test/SemaCXX/goto.cpp Sat Mar 26 20:17:09 2011
@@ -2,11 +2,17 @@
 
 // PR9463
 double *end;
-void f() {
+void f(bool b1, bool b2) {
   {
-    int end = 0;
-    goto end;
-    end = 1;
+    do {
+      int end = 0;
+      if (b2) {
+        do {
+          goto end;
+        } while (b2);
+      }
+      end = 1;
+    } while (b1);
   }
 
  end:





More information about the llvm-branch-commits mailing list