From cc4c2930ae7a021580d3ca7fc887817aaf826c7e Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 31 Oct 2007 21:02:10 +0000 Subject: [PATCH] New test to verify llvm struct layout. llvm-svn: 43577 --- clang/test/CodeGen/struct-x86-darwin.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clang/test/CodeGen/struct-x86-darwin.c diff --git a/clang/test/CodeGen/struct-x86-darwin.c b/clang/test/CodeGen/struct-x86-darwin.c new file mode 100644 index 000000000000..71359bf53542 --- /dev/null +++ b/clang/test/CodeGen/struct-x86-darwin.c @@ -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;