blob: 9106d3daa5bfa93d0137a988f3a43d5e6c46dbe2 [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());