aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
-rw-r--r--test/Sema/switch-1.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 6712f20cd3..0b1917a46d 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -5713,7 +5713,7 @@ def warn_case_value_overflow : Warning<
"overflow converting case value to switch condition type (%0 to %1)">,
InGroup<Switch>;
def warn_case_constant_overflow : Warning<
- "overflow in case constant expression results in new value (%0)">,
+ "overflow in case constant expression results in value %0">,
InGroup<Switch>;
def err_duplicate_case : Error<"duplicate case value '%0'">;
def err_duplicate_case_differing_expr : Error<
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;