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
/
throwexp.d
blob
b1216ce682f9d8307eaa7f14f8f8502f5ddc894e
1
/+ TEST_OUTPUT:
2
---
3
fail_compilation/throwexp.d(11): Error: to be thrown `ret()` must be non-null
4
fail_compilation/throwexp.d(12): Error: to be thrown `null` must be non-null
5
---
6
+/
7
auto
ret
()
8
{
9
return
Exception
.
init
;
10
}
11
enum
y
=
throw
ret
();
12
enum
x
=
throw
Exception
.
init
;