MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail12636.d
blob42e785547164e9fe22ed320d1c94fda50ed70407
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail12636.d(13): Error: C++ class `fail12636.C` cannot implement D interface `fail12636.D`
5 ---
6 */
8 interface D
10 void foo();
13 extern(C++) class C : D
15 extern(D) override void foo() { }
18 void main()
20 auto c = new C;
21 c.foo(); // works
22 D d = c;
23 d.foo(); // segfault