blob: f7c4bf5021af443a788d5122f569bc216d384e05 [file] [log] [blame]
Devang Patel9889c1a2007-11-01 00:07:12 +00001// RUN: clang %s -emit-llvm > %t1
2// RUN grep "STest1 = type { i32, \[4 x i16\], double }" %t1
3// RUN: grep "STest2 = type { i16, i16, i32, i32 }" %t1
4// RUN: grep "STest3 = type { i8, i8, i16, i32 }" %t1
Devang Patel85efa662007-10-31 21:02:10 +00005// Test struct layout for x86-darwin target
6// FIXME : Enable this test for x86-darwin only. At the moment clang hard codes
7// x86-darwin as the target
8
9struct STest1 {int x; short y[4]; double z; } st1;
Devang Patel9889c1a2007-11-01 00:07:12 +000010struct STest2 {short a,b; int c,d; } st2;
11struct STest3 {char a; short b; int c; } st3;
12
13// Bitfields struct STestB1 {int a:1; char b; int c:13 } stb1;
14// Packed struct STestP1 {char a; short b; int c; } __attribute__((__packed__)) stp1;