Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attr-unavailable-2.C
blob: 3de5532817e1aedefae163db57be5b3c9231dbfd [
file
] [
log
] [
blame
]
/* Test __attribute__ ((unavailable)) */
/* { dg-do compile } */
/* { dg-options "" } */
void
func
(
void
);
void
func
(
void
)
__attribute__
((
unavailable
));
void
f
(
void
)
{
func
();
/* { dg-error "'void func\\(\\)' is unavailable" } */
}