[cfe-commits] r148245 - /cfe/trunk/test/CodeGenCXX/switch-case-folding.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Jan 16 10:07:46 PST 2012
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;
}
More information about the cfe-commits
mailing list