New testcase that crashes the new CFE.
authorChris Lattner <sabre@nondot.org>
Mon, 1 May 2006 23:18:55 +0000 (23:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 May 2006 23:18:55 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28042 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2006-05-01-AppleAlignmentPragma.c [new file with mode: 0644]

diff --git a/test/CFrontend/2006-05-01-AppleAlignmentPragma.c b/test/CFrontend/2006-05-01-AppleAlignmentPragma.c
new file mode 100644 (file)
index 0000000..c9050aa
--- /dev/null
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -S -o -
+
+#ifdef __APPLE__
+/* test that X is layed out correctly when this pragma is used. */
+#pragma options align=mac68k
+#endif
+
+struct S {
+  unsigned A;
+  unsigned short B;
+} X;
+