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
8 lines
168 B
C
8 lines
168 B
C
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
void initbug() {
|
|
const union { float a; } u = {};
|
|
(void)u.a; // no-crash
|
|
}
|