diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-11 19:33:54 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-11 19:33:54 +0000 |
| commit | 70ae634f87dd13ed8678542b8b075460b95d298f (patch) | |
| tree | 4fa4b90ff4adf6ec59bf47b644b74f2814bc4572 /clang/test/Sema/switch-1.c | |
| parent | 2c173b48066b8912351a8eade2c710594842386d (diff) | |
| download | bcm5719-llvm-70ae634f87dd13ed8678542b8b075460b95d298f.tar.gz bcm5719-llvm-70ae634f87dd13ed8678542b8b075460b95d298f.zip | |
Improve diagnostic per Richard's suggestion
(which may yet change if we move the diagnostic
outside case value).
llvm-svn: 172242
Diffstat (limited to 'clang/test/Sema/switch-1.c')
| -rw-r--r-- | clang/test/Sema/switch-1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/switch-1.c b/clang/test/Sema/switch-1.c index 2b729ac0ad3..e029bc9ffbf 100644 --- a/clang/test/Sema/switch-1.c +++ b/clang/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; |

