MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail6242.d
blobcb2de2c539e4b958ce38f4b580d4a6fa936301bc
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail6242.d(9): Error: cannot implicitly override base class method `fail6242.A.fun` with `fail6242.B.fun`; add `override` attribute
5 ---
6 */
7 class A { void fun(int) {} }
9 class B : A { void fun(int x) in { assert(x > 0); } do {} }