Author: fjahanian
Date: Mon Jan 16 12:07:45 2012
New Revision: 148245

URL: http://llvm.org/viewvc/llvm-project?rev=148245&view=rev
Log:
A little more elaborate test for r148243

Modified:
    cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp

Modified: cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp?rev=148245&r1=148244&r2=148245&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp Mon Jan 16 12:07:45 2012
@@ -6,7 +6,13 @@
        // Make sure we don't crash when constant folding the case 4
        // statement due to the case 5 statement contained in the do loop
        switch (4) {
-               case 4: do { case 5: x++;} while (x < 100);
+               case 4: do { 
+                     switch (6)  {
+                       case 6: {
+                         case 5: x++;
+                       };
+                     };
+                } while (x < 100);
        }
        return x;
 }


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

Reply via email to