diff options
| author | Kristof Umann <kristof.umann@ericsson.com> | 2019-05-18 12:34:08 +0000 |
|---|---|---|
| committer | Kristof Umann <kristof.umann@ericsson.com> | 2019-05-18 12:34:08 +0000 |
| commit | f40c18b628f3b0008acf4f9ac0102f103b690cc2 (patch) | |
| tree | 8e33d1131a3a13e32896350f55d80f5381fd529d /clang/test/Analysis/cxx-uninitialized-object.cpp | |
| parent | 30aa42e1451f7d69fd6fb08659e8ab3704a1a570 (diff) | |
| download | bcm5719-llvm-f40c18b628f3b0008acf4f9ac0102f103b690cc2.tar.gz bcm5719-llvm-f40c18b628f3b0008acf4f9ac0102f103b690cc2.zip | |
[analyzer] PR41753: Include complex integer types in NonLoc::isCompoundType
https://bugs.llvm.org/show_bug.cgi?id=41753
Differential Revision: https://reviews.llvm.org/D61570
llvm-svn: 361099
Diffstat (limited to 'clang/test/Analysis/cxx-uninitialized-object.cpp')
| -rw-r--r-- | clang/test/Analysis/cxx-uninitialized-object.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/clang/test/Analysis/cxx-uninitialized-object.cpp b/clang/test/Analysis/cxx-uninitialized-object.cpp index dde99dc9540..e3fa8ae8d7f 100644 --- a/clang/test/Analysis/cxx-uninitialized-object.cpp +++ b/clang/test/Analysis/cxx-uninitialized-object.cpp @@ -1167,20 +1167,17 @@ struct ComplexUninitTest { __complex__ int y; }; -// FIXME: Currently this causes (unrelated to this checker) an assertion -// failure. -// -//struct ComplexInitTest { -// ComplexInitTest() { -// x = {1.0f, 1.0f}; -// y = {1, 1}; -// } -// __complex__ float x; -// __complex__ int y; -//}; +struct ComplexInitTest { + ComplexInitTest() { + x = {1.0f, 1.0f}; + y = {1, 1}; + } + __complex__ float x; + __complex__ int y; +}; void fComplexTest() { -// ComplexInitTest x; + ComplexInitTest x; // TODO: we should emit a warning for x2.x and x2.y. ComplexUninitTest x2; |

