Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test18000.d

raw
1 // REQUIRED_ARGS: -preview=dip1000
2
3 // https://issues.dlang.org/show_bug.cgi?id=18000
4
5 struct File
6 {
7 @safe @nogc:
8 ~this() scope
9 {
10 }
11
12 void* f;
13 }
14
15 void test() @safe @nogc
16 {
17 scope File x;
18 x = File();
19 }