MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ctfe14465.d
blob52e1ad3c1ca198c995d79e53be18b44e3620df13
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ctfe14465.d(19): Error: uncaught CTFE exception `ctfe14465.E("message")`
5 fail_compilation/ctfe14465.d(22): called from here: `foo()`
6 fail_compilation/ctfe14465.d(22): while evaluating: `static assert(foo())`
7 ---
8 */
9 class E : Exception
11 this(string msg)
13 super(msg);
17 bool foo()
19 throw new E("message");
22 static assert(foo());