[cfe-commits] r43577 - /cfe/trunk/test/CodeGen/struct-x86-darwin.c

Devang Patel dpatel at apple.com
Wed Oct 31 14:02:10 PDT 2007


Author: dpatel
Date: Wed Oct 31 16:02:10 2007
New Revision: 43577

URL: http://llvm.org/viewvc/llvm-project?rev=43577&view=rev
Log:
New test to verify llvm struct layout.

Added:
    cfe/trunk/test/CodeGen/struct-x86-darwin.c

Added: cfe/trunk/test/CodeGen/struct-x86-darwin.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/struct-x86-darwin.c?rev=43577&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/struct-x86-darwin.c (added)
+++ cfe/trunk/test/CodeGen/struct-x86-darwin.c Wed Oct 31 16:02:10 2007
@@ -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;





More information about the cfe-commits mailing list