1*b1e83836Smrg // { dg-shouldfail " world!" } 2*b1e83836Smrg // { dg-output "object.Exception@.*: hello.*world!" } 3*b1e83836Smrg module message_with_null; 4*b1e83836Smrg main()5*b1e83836Smrg void main() 6*b1e83836Smrg { 7*b1e83836Smrg throw new Exception("hello\0 world!"); 8*b1e83836Smrg } 9