diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-05-09 12:27:21 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-05-09 12:27:21 +0000 |
| commit | 48fcfc3274a341a05b39e39e95d6353ebbb17ea8 (patch) | |
| tree | c9faf7923e9f0246bfe6887502cd3ee4d34a7d57 /clang/test/Analysis/initialization.c | |
| parent | e0207a60dd246124f2515d55f5658b2c90dd20db (diff) | |
| download | bcm5719-llvm-48fcfc3274a341a05b39e39e95d6353ebbb17ea8.tar.gz bcm5719-llvm-48fcfc3274a341a05b39e39e95d6353ebbb17ea8.zip | |
Fixes issue introduced by r331556.
Closes bug: https://bugs.llvm.org/show_bug.cgi?id=37357
Patch by Rafael Stahl!
Differential revision: https://reviews.llvm.org/D46633
llvm-svn: 331870
Diffstat (limited to 'clang/test/Analysis/initialization.c')
| -rw-r--r-- | clang/test/Analysis/initialization.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Analysis/initialization.c b/clang/test/Analysis/initialization.c new file mode 100644 index 00000000000..a6fe9be2b70 --- /dev/null +++ b/clang/test/Analysis/initialization.c @@ -0,0 +1,7 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s +// expected-no-diagnostics + +void initbug() { + const union { float a; } u = {}; + (void)u.a; // no-crash +} |

