Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/guality/zero-length-array.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR debug/86985 */ |
2 /* { dg-do run } */ | |
3 /* { dg-options "-g" } */ | |
4 | |
5 struct { | |
6 int foo; | |
7 int bar[0]; | |
8 } zla; /* Zero length array. */ | |
9 | |
10 struct { | |
11 int foo; | |
12 int bar[]; | |
13 } fam; /* Flexible array member. */ | |
14 | |
15 int | |
16 main () | |
17 { | |
18 /* { dg-final { gdb-test . "type:zla" "struct { int foo; int bar[0]; }" } } */ | |
19 /* { dg-final { gdb-test . "type:fam" "struct { int foo; int bar[]; }" } } */ | |
20 return 0; | |
21 } |