blob: 52e1ad3c1ca198c995d79e53be18b44e3620df13 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ctfe14465.d(19): Error: uncaught CTFE exception `ctfe14465.E("message")`
fail_compilation/ctfe14465.d(22): called from here: `foo()`
fail_compilation/ctfe14465.d(22): while evaluating: `static assert(foo())`
---
*/
class E : Exception
{
this(string msg)
{
super(msg);
}
}
bool foo()
{
throw new E("message");
}
static assert(foo());