Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attr-unavailable-4.C
blob: b7f352ee3bd285b12db032a4c4ac10762f629668 [
file
] [
log
] [
blame
]
/* Test __attribute__ ((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
struct
B
{
virtual
int
foo
()
__attribute__
((
unavailable
));
};
int
main
(
void
)
{
((
B
*)
0
)->
foo
();
// { dg-error "unavailable" }
}