summaryrefslogtreecommitdiff
path: root/clang/test/Sema/align-arm-apcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/align-arm-apcs.c')
-rw-r--r--clang/test/Sema/align-arm-apcs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/align-arm-apcs.c b/clang/test/Sema/align-arm-apcs.c
new file mode 100644
index 0000000..0a5d3fe
--- /dev/null
+++ b/clang/test/Sema/align-arm-apcs.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -triple arm-unknown-unknown -target-abi apcs-gnu -fsyntax-only -verify %s
+
+struct s0 { double f0; int f1; };
+char chk0[__alignof__(struct s0) == 4 ? 1 : -1];