Mercurial > projects > dstress
annotate run/debug_02.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 |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
84 | 5 // @author@ Thomas Kuehne <eisvogel@users.sourceforge.net> |
6 // @date@ 2004-10-16 | |
140 | 7 // @uri@ news:ckro4i$1b4l$2@digitaldaemon.com |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2119 |
84 | 9 |
85
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
84
diff
changeset
|
10 // __DSTRESS_DFLAGS__ -debug=2 |
84 | 11 |
12 module dstress.run.debug_02; | |
13 | |
14 int main(){ | |
15 int i=0; | |
16 assert(i==0); | |
17 debug(1){ | |
85
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
84
diff
changeset
|
18 i++; |
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
84
diff
changeset
|
19 assert(i==1); |
84 | 20 } |
21 debug(2){ | |
22 i++; | |
85
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
84
diff
changeset
|
23 assert(i==2); |
84 | 24 } |
25 debug(3){ | |
85
659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
thomask
parents:
84
diff
changeset
|
26 assert(0); |
84 | 27 } |
28 assert(i==2); | |
29 return 0; | |
30 } |