| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/lexer4.d(22): Error: unterminated character constant |
| 5 |
fail_compilation/lexer4.d(24): Error: unterminated character constant |
| 6 |
fail_compilation/lexer4.d(25): Error: unterminated character constant |
| 7 |
fail_compilation/lexer4.d(26): Error: binary digit expected, not `2` |
| 8 |
fail_compilation/lexer4.d(27): Error: octal digit expected, not `8` |
| 9 |
fail_compilation/lexer4.d(27): Error: octal literals larger than 7 are no longer supported |
| 10 |
fail_compilation/lexer4.d(28): Error: decimal digit expected, not `a` |
| 11 |
fail_compilation/lexer4.d(29): Error: repeated integer suffix `U` |
| 12 |
fail_compilation/lexer4.d(30): Error: exponent required for hex float |
| 13 |
fail_compilation/lexer4.d(31): Error: lower case integer suffix 'l' is not allowed. Please use 'L' instead |
| 14 |
fail_compilation/lexer4.d(32): Error: use 'i' suffix instead of 'I' |
| 15 |
fail_compilation/lexer4.d(34): Error: line number `1234567891234567879` out of range |
| 16 |
fail_compilation/lexer4.d(36): Error: positive integer argument expected following `#line` |
| 17 |
fail_compilation/lexer4.d(19): Error: found `"file"` when expecting new line following `#line` directive |
| 18 |
--- |
| 19 |
*/ |
| 20 |
|
| 21 |
|
| 22 |
static c1 = ' |
| 23 |
; |
| 24 |
static c2 = ''; |
| 25 |
static c3 = 'a; |
| 26 |
int i = 0b12; |
| 27 |
int j = 0128; |
| 28 |
int k = 12a; |
| 29 |
int l = 12UU; |
| 30 |
int f = 0x1234.0; |
| 31 |
int m = 12l; |
| 32 |
static n = 12.1I; |
| 33 |
|
| 34 |
#line 1234567891234567879 |
| 35 |
|
| 36 |
#line whatever |
| 37 |
|
| 38 |
#line 18 __FILE__ |
| 39 |
|
| 40 |
#line 20 "file" "file" |
| 41 |
|
| 42 |
/** asdf *//** asdf2 */ |
| 43 |
int o; |