blob: 83d5a76779d963732cee10a2fcd165f57ddd3159 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* PR debug/86985 */
/* { dg-do run } */
/* { dg-options "-std=c17 -g" } */
/* FIXME: Use -std=c17 until PR113688 if fixed. */
struct {
int foo;
int bar[0];
} zla; /* Zero length array. */
struct {
int foo;
int bar[];
} fam; /* Flexible array member. */
int
main ()
{
/* { dg-final { gdb-test . "type:zla" "struct { int foo; int bar[0]; }" } } */
/* { dg-final { gdb-test . "type:fam" "struct { int foo; int bar[]; }" } } */
return 0;
}
|