diff options
| author | Anna Zaks <ganna@apple.com> | 2012-09-05 22:31:58 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2012-09-05 22:31:58 +0000 |
| commit | e5cb4981d06e30594a947b5c44fe84cd71763a97 (patch) | |
| tree | 0925643250a7b4928c5e28d1d6d0e8f6221afd63 /clang/test/Analysis/complex-init-list.cpp | |
| parent | b4b2b57ee003b039ec5aca1a12af2cfb0a1868fd (diff) | |
| download | bcm5719-llvm-e5cb4981d06e30594a947b5c44fe84cd71763a97.tar.gz bcm5719-llvm-e5cb4981d06e30594a947b5c44fe84cd71763a97.zip | |
[analyzer] Fix a crash PR13762.
llvm-svn: 163262
Diffstat (limited to 'clang/test/Analysis/complex-init-list.cpp')
| -rw-r--r-- | clang/test/Analysis/complex-init-list.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Analysis/complex-init-list.cpp b/clang/test/Analysis/complex-init-list.cpp new file mode 100644 index 00000000000..24244cb5eff --- /dev/null +++ b/clang/test/Analysis/complex-init-list.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-output=text -verify %s + +// Do not crash on initialization to complex numbers. +void init_complex() { + _Complex float valid1 = { 0.0f, 0.0f }; +} |

