diff options
Diffstat (limited to 'test/Sema/switch.c')
-rw-r--r-- | test/Sema/switch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/switch.c b/test/Sema/switch.c index 5999f342aefab..122947e7ce5cd 100644 --- a/test/Sema/switch.c +++ b/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; + } +} |