Debian Codegraph @

gcc/testsuite/gcc.dg/c2y-align-2.c

raw
1 /* Test C2Y alignof on an incomplete array type: still not allowed for other
2 incomplete types. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c2y -pedantic-errors" } */
5
6 int a = alignof(void); /* { dg-error "void" } */
7 struct s;
8 int b = alignof(struct s); /* { dg-error "incomplete" } */