aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/struct-x86-darwin.c
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-21 22:54:57 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-01-21 22:54:57 +0000
commit2c46ce8de96787aa8e040690a80896f1148c29b0 (patch)
tree7ab00ba256f009156702e262ef0a076e1b42f25a /test/CodeGen/struct-x86-darwin.c
parent7c39ff7eb3dd7ae9b2b81cb66a139c9b52f47f1d (diff)
Simplify the bitfield codegen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct-x86-darwin.c')
-rw-r--r--test/CodeGen/struct-x86-darwin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/struct-x86-darwin.c b/test/CodeGen/struct-x86-darwin.c
index 2fc959a6e0..faa5bb2dc4 100644
--- a/test/CodeGen/struct-x86-darwin.c
+++ b/test/CodeGen/struct-x86-darwin.c
@@ -6,6 +6,8 @@
// RUN: grep "STestB2 = type { i8, i8, i8 }" %t1 &&
// RUN: grep "STestB3 = type { i8, i8 }" %t1 &&
// RUN: grep "STestB4 = type { i8, i8, i8, i8 }" %t1
+// RUN: grep "STestB5 = type { i8, i8, i8, i8, i8, i8 }" %t1
+// RUN: grep "STestB6 = type { i8, i8, i8, i8 }" %t1
// Test struct layout for x86-darwin target
// FIXME : Enable this test for x86-darwin only. At the moment clang hard codes
// x86-darwin as the target
@@ -19,6 +21,7 @@ struct STestB1 {char a; char b:2; } stb1;
struct STestB2 {char a; char b:5; char c:4; } stb2;
struct STestB3 {char a; char b:2; } stb3;
struct STestB4 {char a; short b:2; char c; } stb4;
+struct STestB5 {char a; short b:10; char c; } stb5;
+struct STestB6 {int a:1; char b; int c:13 } stb6;
-//struct STestB {int a:1; char b; int c:13 } stb;
// Packed struct STestP1 {char a; short b; int c; } __attribute__((__packed__)) stp1;