diff --git a/test/runnable/betterc.d b/test/runnable/betterc.d index a77807bace3f..3a28f2f4d13a 100644 --- a/test/runnable/betterc.d +++ b/test/runnable/betterc.d @@ -25,6 +25,7 @@ extern (C) void main() { test(1); test18472(); + test18828(); } /*******************************************/ @@ -69,3 +70,14 @@ struct S18493_2 S18493 s1; S18493 s2; } + +/*******************************************/ +// https://issues.dlang.org/show_bug.cgi?id=18828 + +struct S18828 { } + +void test18828() +{ + S18828 s; + destroy(s); +}