Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test20763.d

raw
1 /*
2 REQUIRED_ARGS: -de
3
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test20763.d(25): Deprecation: type `ulong` has no value
7 fail_compilation/test20763.d(25): perhaps use `ulong.init`
8 fail_compilation/test20763.d(26): Deprecation: type `ulong` has no value
9 fail_compilation/test20763.d(26): perhaps use `ulong.init`
10 fail_compilation/test20763.d(27): Error: type `ulong` has no value
11 fail_compilation/test20763.d(27): perhaps use `ulong.init`
12 fail_compilation/test20763.d(28): Error: type `ulong` has no value
13 fail_compilation/test20763.d(28): perhaps use `ulong.init`
14 fail_compilation/test20763.d(29): Error: type `ulong` has no value
15 fail_compilation/test20763.d(29): perhaps use `ulong.init`
16 fail_compilation/test20763.d(30): Error: type `ulong` has no value
17 fail_compilation/test20763.d(30): perhaps use `ulong.init`
18 ---
19 */
20
21 // https://github.com/dlang/dmd/issues/20763
22 void test()
23 {
24 alias I = ulong;
25 alias U0 = typeof(I + 1u);
26 alias U1 = typeof(1 - I);
27 alias U2 = typeof(+I);
28 alias U3 = typeof(I * 1);
29 alias U4 = typeof(I << 1);
30 alias U5 = typeof(I | 1);
31 }