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