aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/arm-byval-align.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/arm-byval-align.c')
-rw-r--r--test/CodeGen/arm-byval-align.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/arm-byval-align.c b/test/CodeGen/arm-byval-align.c
new file mode 100644
index 000000000000..aa22503fe4bb
--- /dev/null
+++ b/test/CodeGen/arm-byval-align.c
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -triple=armv7-none-eabi < %s -S -emit-llvm | FileCheck %s
+
+struct foo {
+ long long a;
+ char b;
+ int c:16;
+ int d[16];
+};
+
+// CHECK: %struct.foo* byval align 8 %z
+long long bar(int a, int b, int c, int d, int e,
+ struct foo z) {
+ return z.a;
+}