diff options
Diffstat (limited to 'test/SemaCXX/switch-implicit-fallthrough.cpp')
-rw-r--r-- | test/SemaCXX/switch-implicit-fallthrough.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaCXX/switch-implicit-fallthrough.cpp b/test/SemaCXX/switch-implicit-fallthrough.cpp index 75dda8a961..93e724e86c 100644 --- a/test/SemaCXX/switch-implicit-fallthrough.cpp +++ b/test/SemaCXX/switch-implicit-fallthrough.cpp @@ -38,6 +38,18 @@ int fallthrough(int n) { case 68: break; } + switch (n / 15) { +label_case_70: + case 70: + n += 333; + break; + case 71: + n += 334; + goto label_case_70; + case 72: + n += 335; + break; + } switch (n / 20) { case 7: n += 400; |