summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/issue21813b.d
blob: ef226971d872c2b1ae83a133be39be79da4a072b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://issues.dlang.org/show_bug.cgi?id=21813
Target.OS defaultTargetOS()
{
    return Target.OS.linux;
}

struct Target 
{
    enum OS { linux }
    OS os = defaultTargetOS();
    @property isPOSIX() scope @nogc { }
}