d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / throwexp.d
blobb1216ce682f9d8307eaa7f14f8f8502f5ddc894e
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()
9 return Exception.init;
11 enum y = throw ret();
12 enum x = throw Exception.init;