Testcase for llvm-gcc commit r128230.
authorEric Christopher <echristo@apple.com>
Thu, 24 Mar 2011 21:59:03 +0000 (21:59 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 24 Mar 2011 21:59:03 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128242 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/vla-3.c [new file with mode: 0644]

diff --git a/test/FrontendC/vla-3.c b/test/FrontendC/vla-3.c
new file mode 100644 (file)
index 0000000..eca9675
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -std=gnu99 %s -S -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);
+}