Debian Codegraph @

gcc/testsuite/g++.dg/ext/attr-unavailable-5.C

raw
1 /* Test __attribute__ ((unavailable)) */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 struct Foo { int i; } __attribute__ ((unavailable));
6 void foo() { Foo f; } // { dg-error "unavailable" }