summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test8922d.d
blob: 4898cf623add32cb7c198b92ca6ef51a8e7e5681 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PERMUTE_ARGS:
// EXTRA_FILES: imports/bug8922.d
void test()
{
    static import imports.bug8922;
    static assert(!__traits(compiles, __traits(parent, imports)));
    static assert(!__traits(compiles, __traits(parent, bug8922)));
    enum x = __traits(parent, imports.bug8922).stringof;
    static assert(x == "package imports");
}