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