[llvm-commits] CVS: llvm/test/CFrontend/2007-05-15-PaddingElement.c
Devang Patel
dpatel at apple.com
Tue May 15 16:44:46 PDT 2007
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);
+ }
More information about the llvm-commits
mailing list