MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail23574.d
blobc314d92fae519bd43e89922b67a4d5ef489b26a0
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 ---
11 module object;
13 class Object
17 bool opEquals(LHS, RHS)(LHS lhs, RHS)
19 opEquals(cast()lhs);
22 class TypeInfo
26 bool _xopEquals()
30 const(char)SDL_GetKeyName()
32 class MyClass
34 S17915!MyClass m_member;
38 struct S17915(T)
40 T owner;