]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test21501a.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test21501a.d
1 // EXTRA_SOURCES: imports/test21501b.d imports/test21501c.d
2 // https://issues.dlang.org/show_bug.cgi?id=21501
3
4 module test21501a;
5 import imports.test21501b;
6 import imports.test21501c;
7
8 alias Identity(alias T) = T;
9
10 struct A
11 {
12 alias a = imports.test21501c.C;
13 const int b = imports.test21501c.D; // fixed
14 alias c = Identity!(mixin(q{imports.test21501c.C})); // fixed
15 const int d = Identity!(mixin(q{imports.test21501c.D})); // fixed
16
17 static assert(is(a == c) && is(a == int));
18 static assert(b == d && b == 1);
19 }