Simplify messages as requested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126389 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/shift.c b/test/Sema/shift.c
index 63c97fe..df6b114 100644
--- a/test/Sema/shift.c
+++ b/test/Sema/shift.c
@@ -37,8 +37,8 @@
int i;
i = 1 << (WORD_BIT - 2);
- i = 2 << (WORD_BIT - 1); // expected-warning {{the promoted type of the shift expression is 'int'}}
- i = 1 << (WORD_BIT - 1); // expected-warning {{overrides the sign bit of the promoted type of the shift expression ('int')}}
+ i = 2 << (WORD_BIT - 1); // expected-warning {{bits to represent, but 'int' only has}}
+ i = 1 << (WORD_BIT - 1); // expected-warning {{overrides the sign bit of the shift expression}}
i = -1 << (WORD_BIT - 1);
i = 0 << (WORD_BIT - 1);
i = (char)1 << (WORD_BIT - 2);
@@ -48,7 +48,7 @@
u = 5U << (WORD_BIT - 1);
long long int lli;
- lli = INT_MIN << 2; // expected-warning {{the promoted type of the shift expression is 'int'}}
+ lli = INT_MIN << 2; // expected-warning {{bits to represent, but 'int' only has}}
lli = 1LL << (sizeof(long long) * CHAR_BIT - 2);
}