[llvm-commits] [llvm] r108365 - /llvm/trunk/test/FrontendC/vla-1.c
Eric Christopher
echristo at apple.com
Wed Jul 14 15:26:35 PDT 2010
Author: echristo
Date: Wed Jul 14 17:26:35 2010
New Revision: 108365
URL: http://llvm.org/viewvc/llvm-project?rev=108365&view=rev
Log:
Add a testcase for the vla and stack realignment warning.
Added:
llvm/trunk/test/FrontendC/vla-1.c
Added: llvm/trunk/test/FrontendC/vla-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/vla-1.c?rev=108365&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/vla-1.c (added)
+++ llvm/trunk/test/FrontendC/vla-1.c Wed Jul 14 17:26:35 2010
@@ -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;
+}
More information about the llvm-commits
mailing list