aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-03-24 21:59:03 +0000
committerEric Christopher <echristo@apple.com>2011-03-24 21:59:03 +0000
commit18a41c92c3adc64f5f4f0400d8b462d4b2417378 (patch)
tree1f39bf9052b41eff37707b6269c6a1b8205b1dce /test
parent8cb988686d4d55eace0cb4aac408d790c02a120b (diff)
downloadexternal_llvm-18a41c92c3adc64f5f4f0400d8b462d4b2417378.zip
external_llvm-18a41c92c3adc64f5f4f0400d8b462d4b2417378.tar.gz
external_llvm-18a41c92c3adc64f5f4f0400d8b462d4b2417378.tar.bz2
Testcase for llvm-gcc commit r128230.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/vla-3.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/vla-3.c b/test/FrontendC/vla-3.c
new file mode 100644
index 0000000..eca9675
--- /dev/null
+++ b/test/FrontendC/vla-3.c
@@ -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);
+}