diff options
author | Jordy Rose <jediknil@belkadan.com> | 2010-07-29 07:11:59 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2010-07-29 07:11:59 +0000 |
commit | 23b736e159e72f0237a888a6d4f7319d7e9e8867 (patch) | |
tree | 5e5b194db3578ebd36da9478720a6b9fe74423d9 /test/Analysis/array-struct.c | |
parent | 1ed72678b41c6038b08f48cb7e2a7b61e2dd9179 (diff) |
Move new test (that requires RegionStore) into its own file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 23 |
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; -} |