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

int a = alignof(int[]);
int b = alignof(int[][1]);