diff --git a/test/CFrontend/2003-10-09-UnionInitializerBug.c b/test/CFrontend/2003-10-09-UnionInitializerBug.c new file mode 100644 index 00000000000..e574a1931d3 --- /dev/null +++ b/test/CFrontend/2003-10-09-UnionInitializerBug.c @@ -0,0 +1,15 @@ +struct Foo { + unsigned a; + unsigned b; + unsigned c; +}; + +struct Bar { + union { + void **a; + struct Foo b; + }u; +}; + +struct Bar test = {0}; +