summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/switch-case-folding-2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/switch-case-folding-2.cpp')
-rw-r--r--clang/test/CodeGenCXX/switch-case-folding-2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/switch-case-folding-2.cpp b/clang/test/CodeGenCXX/switch-case-folding-2.cpp
index b0bbf3282ac..558ca3c87d9 100644
--- a/clang/test/CodeGenCXX/switch-case-folding-2.cpp
+++ b/clang/test/CodeGenCXX/switch-case-folding-2.cpp
@@ -18,4 +18,13 @@ int main(void) {
return test(5);
}
+void other_test() {
+ switch(0) {
+ case 0:
+ do {
+ default:;
+ } while(0);
+ }
+}
+
// CHECK: call i32 (i8*, ...) @_Z6printfPKcz
OpenPOWER on IntegriCloud