| 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" } */ |