MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail19209.d
blob56b858151501787a0900d4edd0bd467bc91eefe7
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail19209.d(16): Error: function `fail19209.Spammer.method()` does not override any function, did you mean to override variable `fail19209.Spam.method`?
5 fail_compilation/fail19209.d(16): Functions are the only declarations that may be overridden
6 ---
7 */
9 class Spam
11 int method;
14 class Spammer : Spam
16 override method() {}