commit | e41458c37923c77fdae39676b3b4bce9f6c80def | [log] [tgz] |
---|---|---|
author | Anna Zaks <ganna@apple.com> | Fri May 25 16:02:16 2012 +0000 |
committer | Anna Zaks <ganna@apple.com> | Fri May 25 16:02:16 2012 +0000 |
tree | 3e944ac3d8d5396f9fd0b0e84fd447806cf3f7af | |
parent | 20831e21ae00ee10e9d9d906f565a66f9fe1d2d1 [diff] [blame] |
[analyzer] Don't crash on LValBitCast git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157478 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/cxx11-crashes.cpp b/test/Analysis/cxx11-crashes.cpp index 8c68734..16bfc89 100644 --- a/test/Analysis/cxx11-crashes.cpp +++ b/test/Analysis/cxx11-crashes.cpp
@@ -57,3 +57,10 @@ bool s[25]; addressof(s); } + +// radar://11487525 Don't crash on CK_LValueBitCast. +bool begin(double *it) { + typedef bool type[25]; + bool *a = reinterpret_cast<type &>(*( reinterpret_cast<char *>( it ))); + return *a; +}