Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
fix17429.d
blob: ed28663795a3b6da784ac20c48bdec9d1bee0011 [
file
] [
log
] [
blame
]
class
Klazz
{
__gshared
size_t
count
;
~
this
()
{
++
count
;
}
}
void
main
()
{
auto
s
=
new
Klazz
;
{
scope s2
=
s
;
// calls delete even though it does not own s
}
assert
(
Klazz
.
count
==
0
);
}