MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag7050c.d
blob3b366df7af34b23a7a94d08fea13d2c4d1df219c
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag7050c.d(14): Error: `@safe` destructor `diag7050c.B.~this` cannot call `@system` destructor `diag7050c.A.~this`
5 fail_compilation/diag7050c.d(11): `diag7050c.A.~this` is declared here
6 ---
7 */
9 struct A
11 ~this(){}
14 @safe struct B
16 A a;
19 @safe void f()
21 auto x = B.init;