MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag18574.d
blobf051d075da249a6009743c4bc018b3e6aaed2649
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag18574.d(16): Error: `diag18574.Test`: multiple class inheritance is not supported. Use multiple interface inheritance and/or composition.
5 fail_compilation/diag18574.d(16): `diag18574.Bar` has no fields, consider making it an `interface`
6 fail_compilation/diag18574.d(16): `diag18574.Baz` has fields, consider making it a member of `diag18574.Test`
7 fail_compilation/diag18574.d(16): Error: `diag18574.Test`: base type must be `interface`, not `int`
8 ---
9 */
10 // https://issues.dlang.org/show_bug.cgi?id=18574
12 class Foo {}
13 class Bar {}
14 class Baz { int a; }
16 class Test : Foo, Bar, Baz, int {}