Sign in
rust
/
rust-lang
/
gcc
/
refs/heads/trunk
/
.
/
libphobos
/
testsuite
/
libphobos.exceptions
/
invalid_memory_operation.d
blob: 79660e97f2b9b97617549f9ad8a260729e6dfe18 [
file
] [
log
] [
blame
] [
edit
]
// { dg-shouldfail "Invalid memory operation" }
// { dg-output "core.exception.InvalidMemoryOperationError@.*: Invalid memory operation" }
struct
S
{
~
this
()
{
new
int
;
}
}
void
main
()
{
new
S
;
}