1 // PERMUTE_ARGS:
test()2 void test()
3 {
4     import renamed = imports.bug8922;
5     enum x = __traits(parent, renamed).stringof;
6     static assert(x == "package imports");
7     static assert(!__traits(compiles, __traits(parent, imports)));
8     static assert(!__traits(compiles, __traits(parent, bug8922)));
9     static assert(!__traits(compiles, __traits(parent, imports.bug8922)));
10 }
11