repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test12523.d
blob
8a8eae15097aadbb1ae1bdb76162934b4edb1959
1
void
test12523
(
inout
(
int
))
2
{
3
void
check
(
T
)()
4
{
5
T
[]
a
;
6
foreach
(
ref
e
;
a
)
7
static assert
(
is
(
typeof
(
e
) ==
T
));
8
}
9
10
check
!(
int
)();
11
check
!(
inout
(
int
))();
12
check
!(
inout
(
const
(
int
)))();
13
check
!(
const
(
int
))();
14
check
!(
immutable
(
int
))();
15
}