]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/attr-unavailable-5.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / attr-unavailable-5.c
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" } */