Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail2361.d
blob: 7cc402ee84bb2aa241ea62d8031490dbc48877da [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail2361.d(13): Error: cannot modify immutable expression c
---
*/
class
C
{}
void
main
()
{
immutable c
=
new
immutable
(
C
);
delete
c
;
}