summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-16 18:07:45 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-16 18:07:45 +0000
commit7c4dcf4b93dd08011892c6405a4cef22077182fd (patch)
treea1f25f8ef65e84616e2c0235cd7a309bb3ad6bf9 /clang
parent60bb82a584c64ab29cec69d2f80497995a192602 (diff)
downloadbcm5719-llvm-7c4dcf4b93dd08011892c6405a4cef22077182fd.tar.gz
bcm5719-llvm-7c4dcf4b93dd08011892c6405a4cef22077182fd.zip
A little more elaborate test for r148243
llvm-svn: 148245
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenCXX/switch-case-folding.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/switch-case-folding.cpp b/clang/test/CodeGenCXX/switch-case-folding.cpp
index 017b0272bc8..d4444b12ff5 100644
--- a/clang/test/CodeGenCXX/switch-case-folding.cpp
+++ b/clang/test/CodeGenCXX/switch-case-folding.cpp
@@ -6,7 +6,13 @@ int main(void){
// 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;
}
OpenPOWER on IntegriCloud