blob: 334a2cf72862c51d97cad3da88329fa59869ab54 [file] [log] [blame]
/* Test __attribute__ ((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
class ToBeunavailable {
} __attribute__ ((unavailable ("unavailable!")));
typedef ToBeunavailable NotToBeunavailable; // { dg-error "'ToBeunavailable' is unavailable" }
int main() {
ToBeunavailable(); // { dg-error "'ToBeunavailable' is unavailable" }
ToBeunavailable x; // { dg-error "'ToBeunavailable' is unavailable" }
NotToBeunavailable();
NotToBeunavailable y;
}