Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/bug19569.d(70): Error: `bug19569.test0` called with argument types `()` matches multiple overloads exactly:
5 fail_compilation/bug19569.d(56): `bug19569.test0()`
6 and:
7 fail_compilation/bug19569.d(57): `bug19569.test0()`
8 fail_compilation/bug19569.d(71): Error: `bug19569.test1` called with argument types `()` matches multiple overloads exactly:
9 fail_compilation/bug19569.d(59): `bug19569.test1()`
10 and:
11 fail_compilation/bug19569.d(60): `bug19569.test1()`
12 fail_compilation/bug19569.d(72): Error: `bug19569.test2` called with argument types `()` matches multiple overloads exactly:
13 fail_compilation/bug19569.d(62): `bug19569.test2!().test2()`
14 and:
15 fail_compilation/bug19569.d(63): `bug19569.test2!().test2()`
16 fail_compilation/bug19569.d(73): Error: `bug19569.test3` called with argument types `()` matches multiple overloads exactly:
17 fail_compilation/bug19569.d(65): `bug19569.test3!().test3()`
18 and:
19 fail_compilation/bug19569.d(66): `bug19569.test3!().test3()`
20 fail_compilation/bug19569.d(78): Error: `bug19569.test0` called with argument types `()` matches multiple overloads exactly:
21 fail_compilation/bug19569.d(56): `bug19569.test0()`
22 and:
23 fail_compilation/bug19569.d(57): `bug19569.test0()`
24 fail_compilation/bug19569.d(79): Error: `bug19569.test1` called with argument types `()` matches multiple overloads exactly:
25 fail_compilation/bug19569.d(59): `bug19569.test1()`
26 and:
27 fail_compilation/bug19569.d(60): `bug19569.test1()`
28 fail_compilation/bug19569.d(80): Error: `bug19569.test2` called with argument types `()` matches multiple overloads exactly:
29 fail_compilation/bug19569.d(62): `bug19569.test2!().test2()`
30 and:
31 fail_compilation/bug19569.d(63): `bug19569.test2!().test2()`
32 fail_compilation/bug19569.d(81): Error: `bug19569.test3` called with argument types `()` matches multiple overloads exactly:
33 fail_compilation/bug19569.d(65): `bug19569.test3!().test3()`
34 and:
35 fail_compilation/bug19569.d(66): `bug19569.test3!().test3()`
36 fail_compilation/bug19569.d(86): Error: `bug19569.test0` called with argument types `()` matches multiple overloads exactly:
37 fail_compilation/bug19569.d(56): `bug19569.test0()`
38 and:
39 fail_compilation/bug19569.d(57): `bug19569.test0()`
40 fail_compilation/bug19569.d(87): Error: `bug19569.test1` called with argument types `()` matches multiple overloads exactly:
41 fail_compilation/bug19569.d(59): `bug19569.test1()`
42 and:
43 fail_compilation/bug19569.d(60): `bug19569.test1()`
44 fail_compilation/bug19569.d(88): Error: `bug19569.test2` called with argument types `()` matches multiple overloads exactly:
45 fail_compilation/bug19569.d(62): `bug19569.test2!().test2()`
46 and:
47 fail_compilation/bug19569.d(63): `bug19569.test2!().test2()`
48 fail_compilation/bug19569.d(89): Error: `bug19569.test3` called with argument types `()` matches multiple overloads exactly:
49 fail_compilation/bug19569.d(65): `bug19569.test3!().test3()`
50 and:
51 fail_compilation/bug19569.d(66): `bug19569.test3!().test3()`
52 ---
53 */
54
55
56 void test0();
57 void test0() nothrow;
58
59 void test1();
60 void test1() @nogc;
61
62 void test2()();
63 void test2()() nothrow;
64
65 void test3()();
66 void test3()() @nogc;
67
68 void attr0()
69 {
70 test0();
71 test1();
72 test2();
73 test3();
74 }
75
76 void attr1() @nogc
77 {
78 test0();
79 test1();
80 test2();
81 test3();
82 }
83
84 void attr3() nothrow @nogc
85 {
86 test0();
87 test1();
88 test2();
89 test3();
90 }