-Wchar-subscripts should not warn for explicit signed char subscripts either. Another fix for PR4978.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81780 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/warn-char-subscripts.c b/test/Sema/warn-char-subscripts.c
index 972393c..c6fd78c 100644
--- a/test/Sema/warn-char-subscripts.c
+++ b/test/Sema/warn-char-subscripts.c
@@ -33,7 +33,7 @@
void t6() {
int array[1] = { 0 };
signed char subscript = 0;
- int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}}
+ int val = array[subscript]; // no warning for explicit signed char
}
void t7() {
@@ -53,7 +53,7 @@
void t9() {
int array[1] = { 0 };
SignedCharTy subscript = 0;
- int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}}
+ int val = array[subscript]; // no warning for explicit signed char
}
typedef unsigned char UnsignedCharTy;