freebsd-dev/test/CodeGenCXX/anonymous-union-member-initializer.cpp

13 lines
118 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -emit-llvm -o - %s
2009-10-14 18:03:49 +00:00
struct A {
union {
int a;
void* b;
};
A() : a(0) { }
};
A a;