]> granicus.if.org Git - clang/commitdiff
New test to verify llvm struct layout.
authorDevang Patel <dpatel@apple.com>
Wed, 31 Oct 2007 21:02:10 +0000 (21:02 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 31 Oct 2007 21:02:10 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43577 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/struct-x86-darwin.c [new file with mode: 0644]

diff --git a/test/CodeGen/struct-x86-darwin.c b/test/CodeGen/struct-x86-darwin.c
new file mode 100644 (file)
index 0000000..71359bf
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: clang %s -emit-llvm | grep "STest1 = type { i32, \[4 x i16\], double }"
+// 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
+
+struct STest1 {int x; short y[4]; double z; } st1;