MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test24084.d
blob51de15ea21aeb91f659338a2e2113c235c0883d3
1 /* REQUIRED_ARGS: -nothrow
2 * TEST_OUTPUT:
3 ---
4 fail_compilation/test24084.d(110): Error: cannot use `throw` statements with -nothrow
5 fail_compilation/test24084.d(112): Error: cannot use try-catch statements with -nothrow
6 ---
7 */
9 // https://issues.dlang.org/show_bug.cgi?id=24084
11 #line 100
13 struct S
15 int x;
16 ~this() { }
19 void xyzzy()
21 S s;
22 throw new Exception("xx");
24 try
26 int y;
27 } catch (Exception) { }