]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/imports/template_ovs3.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / imports / template_ovs3.d
1 module imports.template_ovs3;
2
3 /***************************************************/
4 // 1900 - template overload set
5
6 import imports.template_ovs1;
7 import imports.template_ovs2;
8
9 struct S1900
10 {
11 alias .foo1900a foo1900a;
12 alias .foo1900b foo1900b;
13
14 alias .bar1900a bar1900a;
15 alias .bar1900b bar1900b;
16
17 alias .baz1900 baz1900;
18
19 alias .bad1900 bad1900;
20
21 // This is a kind of Issue 1528, cannot make overload contains both templates and functions
22 //void funcF() {}
23 //void funcT(T)(T) {}
24 //alias funcF funca; // make overload with alias declaration
25 //alias funcT funca;
26 //alias funcT funcb; // make overload with alias declaration
27 //alias funcF funcb;
28
29 mixin Mix1900_A a;
30 mixin Mix1900_B b;
31 }
32
33 /***************************************************/
34 // 1900
35
36 struct Traits1900(T) if (!is(T == class)) { enum name = "any"; }