summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-01 23:18:55 +0000
committerChris Lattner <sabre@nondot.org>2006-05-01 23:18:55 +0000
commit5104e3b833bdc3cb4ae89d5077623761c261816a (patch)
treedb25220f32fd88909cb277470b7e9596bdbb6df9
parentfd0a5478a19823e836207b4b7900f567bc608dbd (diff)
downloadbcm5719-llvm-5104e3b833bdc3cb4ae89d5077623761c261816a.tar.gz
bcm5719-llvm-5104e3b833bdc3cb4ae89d5077623761c261816a.zip
New testcase that crashes the new CFE.
llvm-svn: 28042
-rw-r--r--llvm/test/Regression/CFrontend/2006-05-01-AppleAlignmentPragma.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2006-05-01-AppleAlignmentPragma.c b/llvm/test/Regression/CFrontend/2006-05-01-AppleAlignmentPragma.c
new file mode 100644
index 00000000000..c9050aa9e4e
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2006-05-01-AppleAlignmentPragma.c
@@ -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;
+
OpenPOWER on IntegriCloud