gcc/libphobos/testsuite/libphobos.exceptions/message_with_null.d

9 lines
171 B
D

// { dg-shouldfail " world!" }
// { dg-output "object.Exception@.*: hello.*world!" }
module message_with_null;
void main()
{
throw new Exception("hello\0 world!");
}