summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/vla-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/vla-3.c')
-rw-r--r--clang/test/CodeGen/vla-3.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/vla-3.c b/clang/test/CodeGen/vla-3.c
new file mode 100644
index 0000000..4927b46
--- /dev/null
+++ b/clang/test/CodeGen/vla-3.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -std=gnu99 %s -emit-llvm -o - | grep ".*alloca.*align 16"
+
+void adr(char *);
+
+void vlaalign(int size)
+{
+ char __attribute__((aligned(16))) tmp[size+32];
+ char tmp2[size+16];
+
+ adr(tmp);
+}