llvm-6502/test/FrontendC/vla-1.c
Dale Johannesen 38cb1381b5 PPC doesn't supported VLA with large alignment. This was
formerly rejected by the FE, so asserted in the BE; now the FE only
warns, so we treat it as a legitimate fatal error in PPC BE.
This means the test for the feature won't pass, so it's xfail'd.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109892 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-30 21:09:48 +00:00

10 lines
242 B
C

// RUN: %llvmgcc_only -std=gnu99 %s -S |& grep {warning: alignment for}
// ppc does not support this feature, and gets a fatal error at runtime.
// XFAIL: powerpc
int foo(int a)
{
int var[a] __attribute__((__aligned__(32)));
return 4;
}