aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-unavailable-2.c
blob: 303f973d5db02b9f8325d506e291f8025b8aa560 (plain)
1
2
3
4
5
6
/* Test __attribute__((unavailable)).  Test types without names.  */
/* { dg-do compile } */
/* { dg-options "" } */

struct { int a; } __attribute__((unavailable)) x; /* { dg-error "type is unavailable" } */
typeof(x) y; /* { dg-error "type is unavailable" } */