annotate run/mixin_09.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
357
6a084cef863a mixin ctor
thomask
parents:
diff changeset
1 // $HeadURL$
6a084cef863a mixin ctor
thomask
parents:
diff changeset
2 // $Date$
6a084cef863a mixin ctor
thomask
parents:
diff changeset
3 // $Author$
6a084cef863a mixin ctor
thomask
parents:
diff changeset
4
6a084cef863a mixin ctor
thomask
parents:
diff changeset
5 // @author@ Regan Heath <regan@netwin.co.nz>
6a084cef863a mixin ctor
thomask
parents:
diff changeset
6 // @date@ 2005-03-17
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 678
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3195
357
6a084cef863a mixin ctor
thomask
parents:
diff changeset
8
6a084cef863a mixin ctor
thomask
parents:
diff changeset
9 module dstress.run.mixin_09;
6a084cef863a mixin ctor
thomask
parents:
diff changeset
10
678
f9e1d827a255 div. fixes
thomask
parents: 427
diff changeset
11 void dummy(...){
427
21344af2174f fixed missing imports
thomask
parents: 357
diff changeset
12 }
21344af2174f fixed missing imports
thomask
parents: 357
diff changeset
13
357
6a084cef863a mixin ctor
thomask
parents:
diff changeset
14 class A {
6a084cef863a mixin ctor
thomask
parents:
diff changeset
15 template ctor(Type)
6a084cef863a mixin ctor
thomask
parents:
diff changeset
16 {
6a084cef863a mixin ctor
thomask
parents:
diff changeset
17 this(Type[] arr)
6a084cef863a mixin ctor
thomask
parents:
diff changeset
18 {
678
f9e1d827a255 div. fixes
thomask
parents: 427
diff changeset
19 foreach(Type v; arr) dummy(typeid(typeof(v)));
357
6a084cef863a mixin ctor
thomask
parents:
diff changeset
20 }
6a084cef863a mixin ctor
thomask
parents:
diff changeset
21 }
6a084cef863a mixin ctor
thomask
parents:
diff changeset
22
6a084cef863a mixin ctor
thomask
parents:
diff changeset
23 mixin ctor!(int);
6a084cef863a mixin ctor
thomask
parents:
diff changeset
24 }
6a084cef863a mixin ctor
thomask
parents:
diff changeset
25
6a084cef863a mixin ctor
thomask
parents:
diff changeset
26 int main(){
6a084cef863a mixin ctor
thomask
parents:
diff changeset
27 static int[] ints = [0,1,2,3];
6a084cef863a mixin ctor
thomask
parents:
diff changeset
28 A a = new A(ints);
6a084cef863a mixin ctor
thomask
parents:
diff changeset
29 return 0;
6a084cef863a mixin ctor
thomask
parents:
diff changeset
30 }
6a084cef863a mixin ctor
thomask
parents:
diff changeset
31