Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag7050c.d
blob: 3fa75fc524cdd46b0bd19c8b5e68e5ce83f058cc [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag7050c.d(13): Error: @safe destructor 'diag7050c.B.~this' cannot call @system destructor 'diag7050c.A.~this'
---
*/
struct
A
{
~
this
(){}
}
@safe
struct
B
{
A a
;
}
@safe
void
f
()
{
auto
x
=
B
.
init
;
}