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