| 1 |
/* Test C2Y alignof on an incomplete array type: not allowed in C23. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=c23 -pedantic-errors" } */ |
| 4 |
|
| 5 |
int a = alignof(int[]); /* { dg-error "incomplete" } */ |
| 6 |
int b = alignof(int[][1]); /* { dg-error "incomplete" } */ |