MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / no_Throwable.d
blobeb385cbdc70d3ccf8babd2a93d3be881e41b1061
1 /*
2 DFLAGS:
3 REQUIRED_ARGS: -c
4 EXTRA_SOURCES: extra-files/minimal/object.d
5 TEST_OUTPUT:
6 ---
7 fail_compilation/no_Throwable.d(14): Error: cannot use `throw` statements because `object.Throwable` was not declared
8 fail_compilation/no_Throwable.d(19): Error: cannot use try-catch statements because `object.Throwable` was not declared
9 ---
12 void test()
14 throw new Exception("msg");
17 void test2()
19 try
21 test();
23 catch (Exception e)