| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c23" } */ |
| 3 |
|
| 4 |
// adapted from PR c/11428. |
| 5 |
|
| 6 |
struct s { int m : 1; char (*y)[]; } s; |
| 7 |
|
| 8 |
int |
| 9 |
foo (void *q) |
| 10 |
{ |
| 11 |
struct s { int m : 1; char (*y)[1]; } t; |
| 12 |
typeof(1 ? &s : &t) p = q; |
| 13 |
return !p->m; |
| 14 |
} |
| 15 |
|