]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gdc.test/runnable/imports/std11069typecons.d
Add D front-end, libphobos library, and D2 testsuite.
[gcc.git] / gcc / testsuite / gdc.test / runnable / imports / std11069typecons.d
1 module imports.std11069typecons;
2
3 import imports.std11069array;
4
5 template Tuple(Specs...)
6 {
7 struct Tuple
8 {
9 Specs expand;
10
11 string toString()
12 {
13 expand[0].empty;
14 expand[0].front;
15 expand[0].popFront();
16
17 return null;
18 }
19 }
20 }
21
22
23 struct RefCounted(T)
24 {
25 T payload;
26
27 ~this()
28 {
29 //.destroy(_refCounted._store._payload);
30 //auto init = typeid(payload).init();
31 payload.toString(); // refer Tuple.toString symbol?
32 }
33
34 }
This page took 0.037999 seconds and 5 git commands to generate.