Debian Codegraph @

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

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