Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / uninit-vals-union.c
blobe16cccfc9115a6d31106a422a51253ae611257e0
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core.builtin -verify -Wno-unused %s
3 typedef union {
4 int y;
5 } U;
7 typedef struct { int x; } A;
9 void foo(void) {
10 U u = {};
11 A *a = &u; // expected-warning{{incompatible pointer types}}
12 a->x; // no-crash