[llvm-commits] [llvm] r108918 - /llvm/trunk/test/FrontendC/vla-2.c
Eric Christopher
echristo at apple.com
Tue Jul 20 13:32:47 PDT 2010
Author: echristo
Date: Tue Jul 20 15:32:47 2010
New Revision: 108918
URL: http://llvm.org/viewvc/llvm-project?rev=108918&view=rev
Log:
Testcase for llvm-gcc commit r108910.
Added:
llvm/trunk/test/FrontendC/vla-2.c
Added: llvm/trunk/test/FrontendC/vla-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/vla-2.c?rev=108918&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/vla-2.c (added)
+++ llvm/trunk/test/FrontendC/vla-2.c Tue Jul 20 15:32:47 2010
@@ -0,0 +1,10 @@
+// RUN: %llvmgcc -std=gnu99 %s -S -o - | grep ".*alloca.*align 32"
+
+extern void bar(int[]);
+
+void foo(int a)
+{
+ int var[a] __attribute__((__aligned__(32)));
+ bar(var);
+ return;
+}
More information about the llvm-commits
mailing list