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 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test1878a.d
blob
6c8fb6b628ce4db4023ae1f2a5e2252698599168
1
void
main
()
2
{
3
ubyte
from
,
to
;
4
foreach
(
i
;
from
..
to
)
5
{
6
static assert
(
is
(
typeof
(
i
) ==
ubyte
));
7
}
8
foreach
(
i
;
'a'
..
'l'
)
9
{
10
static assert
(
is
(
typeof
(
i
) ==
char
));
11
}
12
foreach
(
i
;
'א'
..
'ת'
)
13
{
14
static assert
(
is
(
typeof
(
i
) ==
wchar
));
15
}
16
}