MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21246.d
blob02c0b350171d1566c388f826f3faa6a83c53d812
1 // https://issues.dlang.org/show_bug.cgi?id=21246
2 // EXTRA_FILES: imports/test21246.d
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test21246.d(16): Error: function `void test21246.C.set(Clock clock)` does not override any function, did you mean to override `void imports.test21246.B.set(imports.test21246.Clock clock)`?
7 ---
8 */
9 module test21246;
11 import imports.test21246;
13 class Clock { }
14 class C : B
16 override void set (Clock clock) { }
19 void main () { }