llvm-project/clang/test/CodeGenCXX/anonymous-union-member-init...

13 lines
118 B
C++

// RUN: %clang_cc1 -emit-llvm -o - %s
struct A {
union {
int a;
void* b;
};
A() : a(0) { }
};
A a;