llvm-project/clang/test/Analysis/initialization.c

8 lines
168 B
C
Raw Normal View History

// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
// expected-no-diagnostics
void initbug() {
const union { float a; } u = {};
(void)u.a; // no-crash
}