aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2y-align-2.c
blob: b7b8715041376133235e840b2a5c59f258e18a27 (plain)
1
2
3
4
5
6
7
8
/* Test C2Y alignof on an incomplete array type: still not allowed for other
   incomplete types.  */
/* { dg-do compile } */
/* { dg-options "-std=c2y -pedantic-errors" } */

int a = alignof(void); /* { dg-error "void" } */
struct s;
int b = alignof(struct s); /* { dg-error "incomplete" } */