aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/switch-1.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-01-11 19:33:54 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-01-11 19:33:54 +0000
commit4d8efb48b9de9feee79c948ef9d05febd6d0c20b (patch)
tree895fc081caf56751d15a7d3367c937484531ce70 /test/Sema/switch-1.c
parent46f92523918fd4ac4df5489265c7f85c1b28baea (diff)
Improve diagnostic per Richard's suggestion
(which may yet change if we move the diagnostic outside case value). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/switch-1.c')
-rw-r--r--test/Sema/switch-1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/switch-1.c b/test/Sema/switch-1.c
index 2b729ac0ad..e029bc9ffb 100644
--- a/test/Sema/switch-1.c
+++ b/test/Sema/switch-1.c
@@ -5,10 +5,10 @@
int f(int i) {
switch (i) {
case 2147483647 + 2: // expected-note {{value 2147483649 is outside the range of representable values of type 'int'}} \
- // expected-warning {{overflow in case constant expression results in new value (-2147483647)}}
+ // expected-warning {{overflow in case constant expression results in value -2147483647}}
return 1;
case 9223372036854775807L * 4 : // expected-note {{value 36893488147419103228 is outside the range of representable values of type 'long'}} \
- // expected-warning {{overflow in case constant expression results in new value (-4)}}
+ // expected-warning {{overflow in case constant expression results in value -4}}
return 2;
case 2147483647:
return 0;