summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-char-subscripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/warn-char-subscripts.cpp')
-rw-r--r--clang/test/SemaCXX/warn-char-subscripts.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/test/SemaCXX/warn-char-subscripts.cpp b/clang/test/SemaCXX/warn-char-subscripts.cpp
index 7760ed0e5eb..84ea536b979 100644
--- a/clang/test/SemaCXX/warn-char-subscripts.cpp
+++ b/clang/test/SemaCXX/warn-char-subscripts.cpp
@@ -14,19 +14,6 @@ void t2() {
int val = subscript[array]; // expected-warning{{array subscript is of type 'char'}}
}
-void t3() {
- int array[50] = { 0 };
- int val = array[' ']; // no warning, subscript is a literal
-}
-void t4() {
- int array[50] = { 0 };
- int val = '('[array]; // no warning, subscript is a literal
-}
-void t5() {
- int array[50] = { 0 };
- int val = array['\x11']; // no warning, subscript is a literal
-}
-
void test() {
t1<char>(); // expected-note {{in instantiation of function template specialization 't1<char>' requested here}}
t2<char>(); // expected-note {{in instantiation of function template specialization 't2<char>' requested here}}
OpenPOWER on IntegriCloud