llvm-mirror/test/CFrontend/2003-10-09-UnionInitializerBug.c

18 lines
221 B
C
Raw Normal View History

2004-11-06 22:41:00 +00:00
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2003-10-10 04:05:29 +00:00
struct Foo {
unsigned a;
unsigned b;
unsigned c;
};
struct Bar {
union {
void **a;
struct Foo b;
}u;
};
struct Bar test = {0};