Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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" } */
}