diff options
Diffstat (limited to 'test/FrontendC/2007-03-06-VarSizeInStruct1.c')
-rw-r--r-- | test/FrontendC/2007-03-06-VarSizeInStruct1.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/2007-03-06-VarSizeInStruct1.c b/test/FrontendC/2007-03-06-VarSizeInStruct1.c new file mode 100644 index 000000000000..b4ae56549318 --- /dev/null +++ b/test/FrontendC/2007-03-06-VarSizeInStruct1.c @@ -0,0 +1,8 @@ +// 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; +} |