aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2006-05-01-AppleAlignmentPragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2006-05-01-AppleAlignmentPragma.c')
-rw-r--r--test/FrontendC/2006-05-01-AppleAlignmentPragma.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/FrontendC/2006-05-01-AppleAlignmentPragma.c b/test/FrontendC/2006-05-01-AppleAlignmentPragma.c
new file mode 100644
index 0000000..c9050aa
--- /dev/null
+++ b/test/FrontendC/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;
+