]>
Commit | Line | Data |
---|---|---|
5fee5ec3 IB |
1 | // https://issues.dlang.org/show_bug.cgi?id=11259 |
2 | ||
3 | version (Posix) | |
4 | { | |
5 | // smallest druntime module without imports on posix | |
6 | import core.sys.posix.libgen; | |
7 | static assert(__traits(isSame, __traits(parent, core.sys.posix.libgen), core.sys.posix)); | |
8 | static assert(__traits(isSame, core.sys.posix, __traits(parent, core.sys.posix.libgen))); | |
9 | ||
10 | static assert(__traits(isSame, __traits(parent, core.sys.posix), core.sys)); | |
11 | static assert(__traits(isSame, core.sys, __traits(parent, core.sys.posix))); | |
12 | } | |
13 | else | |
14 | { | |
15 | // smallest module without imports for windows | |
16 | import core.sys.windows.lmuseflg; | |
17 | static assert(__traits(isSame, __traits(parent, core.sys.windows.lmuseflg), core.sys.windows)); | |
18 | static assert(__traits(isSame, core.sys.windows, __traits(parent, core.sys.windows.lmuseflg))); | |
19 | ||
20 | static assert(__traits(isSame, __traits(parent, core.sys.windows), core.sys)); | |
21 | static assert(__traits(isSame, core.sys, __traits(parent, core.sys.windows))); | |
22 | } | |
23 | ||
24 | static assert(__traits(isSame, __traits(parent, core.sys), core)); | |
25 | static assert(__traits(isSame, core, __traits(parent, core.sys))); |