Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag7050a.d
blob: ddee70cf41292018337cab3a88ccf8c16e9ca1df [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag7050a.d(14): Error: @safe function 'diag7050a.foo' cannot call @system constructor 'diag7050a.Foo.this'
---
*/
struct
Foo
{
this
(
int
a
)
{}
}
@safe
void
foo
()
{
auto
f
=
Foo
(
3
);
}