annotate run/goto_05.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 2f17af7c6359
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
184
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
1 // $HeadURL$
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
2 // $Date$
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
3 // $Author$
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
4
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
5 module dstress.run.goto_05;
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
6
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
7 int main(){
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
8 int i=1;
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
9 switch(i){
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
10 case 2:
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
11 return 0;
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
12 case 1:
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
13 switch(i){
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
14 case 1:
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
15 goto case 2;
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
16 default:
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
17 assert(0);
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
18 }
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
19 default:
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
20 assert(0);
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
21 }
2f17af7c6359 extended goto tests
thomask
parents:
diff changeset
22 }