| 1 | module 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. *) |
| 4 | var s*: []const U8; c*: U8; |
| 5 | proc main*; |
| 6 | begin |
| 7 | s := "a\x0012"; |
| 8 | s := "ab\0"; |
| 9 | s := "\0x\\01"; |
| 10 | s := `\01`; |
| 11 | c := '\0'; |
| 12 | s := "\0\01234567890-="; |
| 13 | end; |
| 14 | end ZeroDigit. |