Changes in directory llvm/test/CFrontend:
2007-05-15-PaddingElement.c added (r1.1) --- Log message: New test. --- Diffs of the changes: (+23 -0) 2007-05-15-PaddingElement.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+) Index: llvm/test/CFrontend/2007-05-15-PaddingElement.c diff -c /dev/null llvm/test/CFrontend/2007-05-15-PaddingElement.c:1.1 *** /dev/null Tue May 15 18:44:37 2007 --- llvm/test/CFrontend/2007-05-15-PaddingElement.c Tue May 15 18:44:27 2007 *************** *** 0 **** --- 1,23 ---- + // PR 1419 + + // RUN: %llvmgcc -xc -O2 %s -c -o - | llvm-dis | grep "ret i32 1" + struct A { + short x; + long long :0; + }; + + struct B { + char a; + char b; + unsigned char i; + }; + + union X { struct A a; struct B b; }; + + int check(void) { + union X x, y; + + y.b.i = 0xff; + x = y; + return (x.b.i == 0xff); + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits