annotate run/bug_todt_194_A.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
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
1 // $HeadURL$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
2 // $Date$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
3 // $Author$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
4
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
5 // @author@ zwang <nehzgnaw@gmail.com>
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
6 // @date@ 2005-02-03
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 266
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2850
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
8
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
9 module dstress.run.bug_todt_194_A;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
10
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
11 int main(){
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
12 assert((new MyStruct!()).i==int.sizeof);
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
13 return 0;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
14 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
15
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
16 struct MyStruct(){
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
17 int i=func(0).sizeof;
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
18 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
19
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
20 int func(...){
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
21 return 0;
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
22 }
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
23