raz / test / err / ZeroDigit.raz

14 lines · 341 B · raw · history · last change 264716cb

1module ZeroDigit;
2(* \0 before a digit is a warning; \x00, \0 at the end, \0 before a
3 letter, an escaped backslash before 0 and a raw string are quiet. *)
4var s*: []const U8; c*: U8;
5proc main*;
6begin
7 s := "a\x0012";
8 s := "ab\0";
9 s := "\0x\\01";
10 s := `\01`;
11 c := '\0';
12 s := "\0\01234567890-=";
13end;
14end ZeroDigit.