summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/switch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/switch.c b/clang/test/Sema/switch.c
index a55831d462a..0128a216e5a 100644
--- a/clang/test/Sema/switch.c
+++ b/clang/test/Sema/switch.c
@@ -12,6 +12,8 @@ void foo(int X) {
case 5000000000LL: // expected-warning {{overflow}}
case 42: // expected-error {{duplicate case value}}
;
+
+ case 100 ... 99: ; // expected-warning {{empty case range}}
}
}
OpenPOWER on IntegriCloud