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 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
noreturn_expr2.d
blob
f5e0054823bb6364ac60ddb21404ed9aa1be3519
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/noreturn_expr2.d(8): Error: cannot cast `noreturn` to `int` at compile time
5
---
6
*/
7
8
enum
E
{
e1
=
1
,
e2
=
2
,
illegal
=
noreturn
}
9
10
void
main
()
11
{
12
E e
;
13
e
=
E
.
illegal
;
14
}