Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
test17878.d
blob: 77b5a52bb28a6ff8e81805b2d6c80a147f31eaea [
file
] [
log
] [
blame
]
@__future
int
foo
()
{
return
0
;
}
int
bar
()
{
return
1
;
}
@__future
int
c
;
void
main
()
{
static
assert
(
__traits
(
isFuture
,
foo
));
static
assert
(!
__traits
(
isFuture
,
bar
));
static
assert
(
__traits
(
isFuture
,
c
));
}