annotate run/t/template_39_C.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 daef239f37cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1074
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
1 // $HeadURL$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
2 // $Date$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
3 // $Author$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
4
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
5 // @author@ <h3r3tic@mat.uni.torun.pl>
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
6 // @date@ 2006-06-21
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1074
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=215
1074
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
8
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
9 module dstress.run.t.template_39_C;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
10
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
11 template T() {
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
12 struct S{
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
13 int x = 1;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
14 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
15
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
16 S s;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
17 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
18
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
19 struct Bar {
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
20 mixin T!();
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
21 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
22
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
23 int main(){
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
24 Bar b;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
25
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
26 if(b.s.x != 1){
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
27 assert(0);
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
28 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
29
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
30 return 0;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
31 }