1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/lexer1.d(30): Error: declaration expected, not `x"01 02 03"w` 5 fail_compilation/lexer1.d(31): Error: declaration expected, not `2147483649U` 6 fail_compilation/lexer1.d(32): Error: declaration expected, not `0.1` 7 fail_compilation/lexer1.d(33): Error: declaration expected, not `0.1f` 8 fail_compilation/lexer1.d(34): Error: declaration expected, not `0.1L` 9 fail_compilation/lexer1.d(35): Error: declaration expected, not `0.1i` 10 fail_compilation/lexer1.d(36): Error: declaration expected, not `0.1fi` 11 fail_compilation/lexer1.d(37): Error: declaration expected, not `0.1Li` 12 fail_compilation/lexer1.d(38): Error: declaration expected, not `32U` 13 fail_compilation/lexer1.d(39): Error: declaration expected, not `55295U` 14 fail_compilation/lexer1.d(40): Error: declaration expected, not `65536U` 15 fail_compilation/lexer1.d(41): Error: declaration expected, not `"ab\\c\"\u1234a\U00011100a"d` 16 fail_compilation/lexer1.d(43): Error: declaration expected, not `module` 17 fail_compilation/lexer1.d(45): Error: escape hex sequence has 1 hex digits instead of 2 18 fail_compilation/lexer1.d(46): Error: undefined escape hex sequence \G 19 fail_compilation/lexer1.d(47): Error: unnamed character entity &unnamedentity; 20 fail_compilation/lexer1.d(48): Error: unterminated named entity &1; 21 fail_compilation/lexer1.d(49): Error: unterminated named entity &*; 22 fail_compilation/lexer1.d(50): Error: unterminated named entity &s1"; 23 fail_compilation/lexer1.d(51): Error: unterminated named entity &2; 24 fail_compilation/lexer1.d(52): Error: escape octal sequence \400 is larger than \377 25 --- 26 */ 27 28 // https://dlang.dawg.eu/coverage/src/lexer.c.gcov.html 29 30 x"01 02 03"w; 31 0x80000001; 32 0.1; 33 0.1f; 34 0.1L; 35 0.1i; 36 0.1fi; 37 0.1Li; 38 ' '; 39 '\uD7FF'; 40 '\U00010000'; 41 "ab\\c\"\u1234a\U00011100a\000ab"d; 42 43 module x; 44 45 static s1 = "\x1G"; 46 static s2 = "\xGG"; 47 static s3 = "\&unnamedentity;"; 48 static s4 = "\&1"; 49 static s5 = "\&*"; 50 static s6 = "\&s1"; 51 static s7 = "\&2;"; 52 static s7 = "\400;"; 53