annotate run/s/switch_22_D.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 986983b8cf7a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1060
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
1 // $HeadURL$
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
2 // $Date$
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
3 // $Author$
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
4
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
5 // @author@ <BCS@pathlink.com>
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
6 // @date@ 2006-06-16
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
7 // @uri@ news:e6umde$2ok0$2@digitaldaemon.com
1336
986983b8cf7a adde bugilla URL
thomask
parents: 1061
diff changeset
8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=729
1060
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
9
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
10 module dstress.run.s.switch_22_D;
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
11
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
12 int main(){
1061
5bbc978e55a0 fixed switch_22 thx to BCS
thomask
parents: 1060
diff changeset
13 int i = 3;
1060
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
14
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
15 switch(2){
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
16 scope(failure) i--;
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
17
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
18 default:
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
19 }
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
20
1061
5bbc978e55a0 fixed switch_22 thx to BCS
thomask
parents: 1060
diff changeset
21 if(i != 3){
1060
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
22 assert(0);
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
23 }
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
24
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
25 return 0;
039ab9232f59 <BCS@pathlink.com>
thomask
parents:
diff changeset
26 }