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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
4
84
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <eisvogel@users.sourceforge.net>
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
6 // @date@ 2004-10-16
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 85
diff changeset
7 // @uri@ news:ckro4i$1b4l$2@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2119
84
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
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
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
11
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
12 module dstress.run.debug_02;
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
13
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
14 int main(){
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
15 int i=0;
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
16 assert(i==0);
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
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
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
20 }
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
21 debug(2){
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
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
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
24 }
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
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
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
27 }
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
28 assert(i==2);
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
29 return 0;
91feffeeafa6 used the new ?DSTRESS_FLAGS? support to
thomask
parents:
diff changeset
30 }