Add a testcase for the vla and stack realignment warning.

llvm-svn: 108365
This commit is contained in:
Eric Christopher 2010-07-14 22:26:35 +00:00
parent c12a6731c5
commit e34b383e71
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}