mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add a testcase for the vla and stack realignment warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
163f78ea40
commit
d26e89dfcb
7
test/FrontendC/vla-1.c
Normal file
7
test/FrontendC/vla-1.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user