Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test12523.d
blob: 8a8eae15097aadbb1ae1bdb76162934b4edb1959 [
file
] [
log
] [
blame
]
void
test12523
(
inout
(
int
))
{
void
check
(
T
)()
{
T
[]
a
;
foreach
(
ref
e
;
a
)
static
assert
(
is
(
typeof
(
e
)
==
T
));
}
check
!(
int
)();
check
!(
inout
(
int
))();
check
!(
inout
(
const
(
int
)))();
check
!(
const
(
int
))();
check
!(
immutable
(
int
))();
}