Mercurial > projects > dstress
annotate nocompile/switch_11.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 | 9a121126b077 |
children |
rev | line source |
---|---|
141 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // multiple equal keys in a switch-case | |
6 | |
756 | 7 // __DSTRESS_ELINE__ 16 |
374 | 8 |
141 | 9 module dstress.nocompile.switch_11; |
10 | |
11 int main(){ | |
12 int i; | |
13 switch(i){ | |
14 case 0:{ | |
15 assert(0); | |
16 }case 0:{ | |
17 assert(1); | |
18 }default:{ | |
19 return -1; // dummy | |
20 } | |
21 } | |
22 | |
23 } |