MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / retref2.d
blobaaa5b41e306c69b639f839783c417e1e101c4232
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/retref2.d(18): Error: function `ref int retref2.D.foo(return ref int)` does not override any function, did you mean to override `ref int retref2.C.foo(ref int)`?
5 fail_compilation/retref2.d(19): Error: function `ref scope int retref2.D.bar() return` does not override any function, did you mean to override `ref int retref2.C.bar()`?
6 ---
7 */
10 class C
12 ref int foo(ref int);
13 ref int bar();
16 class D : C
18 override ref int foo(return ref int);
19 override ref int bar() return;