summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-14 22:26:35 +0000
committerEric Christopher <echristo@apple.com>2010-07-14 22:26:35 +0000
commite34b383e71b180b1c5e5ced1c32bca8d62254b8d (patch)
treeead650c535b0950b1eb28ca4112b90a4df4c1d1f
parentc12a6731c58399a86f5944975341689559beb75b (diff)
downloadbcm5719-llvm-e34b383e71b180b1c5e5ced1c32bca8d62254b8d.tar.gz
bcm5719-llvm-e34b383e71b180b1c5e5ced1c32bca8d62254b8d.zip
Add a testcase for the vla and stack realignment warning.
llvm-svn: 108365
-rw-r--r--llvm/test/FrontendC/vla-1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/vla-1.c b/llvm/test/FrontendC/vla-1.c
new file mode 100644
index 00000000000..e290349cd15
--- /dev/null
+++ b/llvm/test/FrontendC/vla-1.c
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -std=gnu99 %s -S |& grep {error: "is greater than the stack alignment" }
+
+int foo(int a)
+{
+ int var[a] __attribute__((__aligned__(32)));
+ return 4;
+}
OpenPOWER on IntegriCloud