d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / lexer4.d
blobc4bdb4fd64c02d7ecf5e3fee626773443f661a4a
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 ---
22 static c1 = '
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;
34 #line 1234567891234567879
36 #line whatever
38 #line 18 __FILE__
40 #line 20 "file" "file"
42 /** asdf *//** asdf2 */
43 int o;