aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/switch-1.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-01-24 23:24:32 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-01-24 23:24:32 +0000
commita7972a08e0fb16e5e7e8364ab6fc8889debf18ab (patch)
tree3058e06e974ed62efb5521913f0d59fc083407dc /test/Sema/switch-1.c
parent0a04cbd98f65827918e857e7ab5597676b9d8e3b (diff)
Fixes text of diagnostics in integer overflow patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/switch-1.c')
-rw-r--r--test/Sema/switch-1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/switch-1.c b/test/Sema/switch-1.c
index bcf30a8d50..50129c3ee2 100644
--- a/test/Sema/switch-1.c
+++ b/test/Sema/switch-1.c
@@ -4,11 +4,11 @@
int f(int i) {
switch (i) {
- case 2147483647 + 2: // expected-warning {{overflow in case constant expression results in value -2147483647 of type 'int'}}
+ case 2147483647 + 2: // expected-warning {{overflow of constant expression results in value -2147483647 of type 'int'}}
return 1;
- case 9223372036854775807L * 4: // expected-warning {{overflow in case constant expression results in value -4 of type 'long'}}
+ case 9223372036854775807L * 4: // expected-warning {{overflow of constant expression results in value -4 of type 'long'}}
return 2;
- case (123456 *789012) + 1: // expected-warning {{overflow in case constant expression results in value -1375982336 of type 'int'}}
+ case (123456 *789012) + 1: // expected-warning {{overflow of constant expression results in value -1375982336 of type 'int'}}
return 3;
case 2147483647:
return 0;