diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test17441.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/test17441.d | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test17441.d b/gcc/testsuite/gdc.test/compilable/test17441.d new file mode 100644 index 00000000000..2c356fdc03b --- /dev/null +++ b/gcc/testsuite/gdc.test/compilable/test17441.d @@ -0,0 +1,9 @@ +// EXTRA_FILES: imports/test17441foo/package.d imports/test17441foo/bar.d +import m1 = imports.test17441foo.bar; +import m2 = imports.test17441foo; +alias p = __traits(parent, m1); +enum e(alias thing) = thing.stringof; + +static assert(e!m1 == m1.stringof); +static assert(e!m2 == m2.stringof); +static assert( e!p == p.stringof ); |