aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test18000.d
blob: 9de33242e90c878b6cae8b687437e9ce55738ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// REQUIRED_ARGS: -preview=dip1000

// https://issues.dlang.org/show_bug.cgi?id=18000

struct File
{
@safe @nogc:
    ~this() scope
    {
    }

    void* f;
}

void test() @safe @nogc
{
    scope File x;
    x = File();
}