Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test22635.d
blob: c2abc8379563faeb36813e3efb88edbc0fecdf7e [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=22635
// opCast prevent calling destructor for const this
struct
Foo
{
bool
opCast
(
T
:
bool
)()
const
{
assert
(
0
);
}
~
this
()
{}
}
struct
Bar
{
const
Foo
foo
;
}