Debian Codegraph @

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

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