diff options
Diffstat (limited to 'clang/test/Sema/switch.c')
-rw-r--r-- | clang/test/Sema/switch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/switch.c b/clang/test/Sema/switch.c index 5999f342aef..122947e7ce5 100644 --- a/clang/test/Sema/switch.c +++ b/clang/test/Sema/switch.c @@ -68,3 +68,10 @@ void test5(int z) { } } +void test6() { + const char ch = 'a'; + switch(ch) { + case 1234: // expected-warning {{overflow converting case value}} + break; + } +} |