aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index ef9907bb57..3e46a0a622 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -178,26 +178,3 @@ void f18() {
if (*q) { // no-warning
}
}
-
-int f19() {
- char a[] = "abc";
- char b[2] = "abc"; // expected-warning{{too long}}
- char c[5] = "abc";
-
- if (a[1] != 'b')
- return 5; // expected-warning{{never executed}}
- if (b[1] != 'b')
- return 5; // expected-warning{{never executed}}
- if (c[1] != 'b')
- return 5; // expected-warning{{never executed}}
-
- if (a[3] != 0)
- return 5; // expected-warning{{never executed}}
- if (c[3] != 0)
- return 5; // expected-warning{{never executed}}
-
- if (c[4] != 0)
- return 5; // expected-warning{{never executed}}
-
- return 0;
-}