MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail349.d
blob215453ebe75a2226e5b0e30e6e2aa9787760818d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail349.d(15): Error: function `fail349.bug6109throwing` is not `nothrow`
5 fail_compilation/fail349.d(13): Error: function `fail349.bug6109noThrow` may throw but is marked as `nothrow`
6 ---
7 */
9 int bug6109throwing()
11 throw new Exception("throws");
13 int bug6109noThrow() nothrow
15 auto g = [4][0 .. bug6109throwing()];
16 return 0;