gcc/gcc/testsuite/gcc.dg/attr-unavailable-2.c

7 lines
263 B
C

/* Test __attribute__((unavailable)). Test types without names. */
/* { dg-do compile } */
/* { dg-options "" } */
struct { int a; } __attribute__((unavailable)) x; /* { dg-error "type is unavailable" } */
typeof(x) y; /* { dg-error "type is unavailable" } */