]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test16083.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test16083.d
1 template Alias(Stuff...)
2 {
3 alias Alias = Stuff;
4 }
5
6 enum A { a = 0 }
7 enum B { b = 0 }
8
9 enum C { c = "abc" }
10 enum D { d = "abc" }
11
12 static assert(is(typeof(Alias!(A.a)[0]) == A));
13 static assert(is(typeof(Alias!(B.b)[0]) == B));
14 static assert(is(typeof(Alias!(C.c)[0]) == C));
15 static assert(is(typeof(Alias!(D.d)[0]) == D));