1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2024-12-21 00:32:23 +00:00
llvm-6502/test/FrontendC/2007-03-06-VarSizeInStruct1.c
Dale Johannesen 6a02432574 Add -w to inhibit gcc warnings, which causes the
harness to fail the tests.  The warning all appear
legitimate.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52186 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-10 18:00:09 +00:00

9 lines
131 B
C

// RUN: %llvmgcc %s -w -S -o -
void* p (int n) {
struct f {
char w; char x[n]; char z[];
} F;
F.x[0]='x';
return &F;
}