Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23574
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail23574.d(26): Error: function `object._xopEquals` has no `return` statement, but is expected to return a value of type `bool`
6 Error: undefined identifier `size_t` in module `object`
7 fail_compilation/fail23574.d(34): Error: template instance `object.S17915!(MyClass)` error instantiating
8 fail_compilation/fail23574.d(30): Error: function `object.SDL_GetKeyName` has no `return` statement, but is expected to return a value of type `const(char)`
9 ---
10 */
11 module object;
12
13 class Object
14 {
15 }
16
17 bool opEquals(LHS, RHS)(LHS lhs, RHS)
18 {
19 opEquals(cast()lhs);
20 }
21
22 class TypeInfo
23 {
24 }
25
26 bool _xopEquals()
27 {
28 }
29
30 const(char)SDL_GetKeyName()
31 {
32 class MyClass
33 {
34 S17915!MyClass m_member;
35 }
36 }
37
38 struct S17915(T)
39 {
40 T owner;
41 }