Mercurial > projects > dstress
annotate run/static_16.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 | 6e4063f99377 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ tetsuya <tetsuya_member@pathlink.com> | |
6 // @date@ 2004-10-30 | |
7 // @uri@ news:cm057b$13nu$1@digitaldaemon.com | |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2165 |
374 | 9 |
10 module dstress.run.static_16; | |
11 | |
12 class MyClass{ | |
13 static { | |
14 int x; | |
15 this() { | |
16 x=2; | |
17 } | |
18 } | |
19 } | |
20 | |
21 int main(){ | |
22 assert(MyClass.x==0); | |
23 return 0; | |
24 } |