Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attr-unavailable-5.C
blob: 3beea5d22c5ec872d942eede91a001069b1a7f52 [
file
] [
log
] [
blame
]
/* Test __attribute__ ((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
struct
Foo
{
int
i
;
}
__attribute__
((
unavailable
));
void
foo
()
{
Foo
f
;
}
// { dg-error "unavailable" }