diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-03 12:13:38 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-03 12:13:38 +0000 |
commit | 5206f0b913d1a11744c9436c83b24f8daa21152c (patch) | |
tree | 18e9b48570d6cf34a39e77222b1817de4d0e9586 /test | |
parent | 8112c61789ed077892f4abae55065ab3ce2ae977 (diff) |
Pull VLA size checker into its own files.
Split it to two checkers, one for undefined size,
the other for zero size, so that we don't need to query the size
when emitting the bug report.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/misc-ps.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/misc-ps.m b/test/Analysis/misc-ps.m index 0d4592a9e3..947b41ae79 100644 --- a/test/Analysis/misc-ps.m +++ b/test/Analysis/misc-ps.m @@ -121,12 +121,12 @@ void check_zero_sized_VLA(int x) { if (x) return; - int vla[x]; // expected-warning{{Variable-length array 'vla' has zero elements (undefined behavior)}} + int vla[x]; // expected-warning{{Declare variable-length array (VLA) of zero size}} } void check_uninit_sized_VLA() { int x; - int vla[x]; // expected-warning{{Variable-length array 'vla' garbage value for array size}} + int vla[x]; // expected-warning{{Declare variable-length array (VLA) of undefined size}} } // sizeof(void) |