diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-23 23:06:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-23 23:06:04 +0000 |
commit | 9e060ca641a1f845cecb3371b3a3018d306a5198 (patch) | |
tree | 89ef2ce38500a10ee7ffbf88b0419f6e48c219c4 /test/SemaCXX/array-bounds.cpp | |
parent | 277a6e752512cff286190d35cb353ce717e86b18 (diff) |
Fix bogus -Warray-bounds warning involving 'array[true]' reported in PR 9296.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/array-bounds.cpp')
-rw-r--r-- | test/SemaCXX/array-bounds.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/array-bounds.cpp b/test/SemaCXX/array-bounds.cpp index e82ce60138..80646c7190 100644 --- a/test/SemaCXX/array-bounds.cpp +++ b/test/SemaCXX/array-bounds.cpp @@ -115,3 +115,8 @@ void test_pr9284() { pr9284b<false>(); // expected-note{{in instantiation of function template specialization 'pr9284b<false>' requested here}} } +int test_pr9296() { + int array[2]; + return array[true]; // no-warning +} + |