annotate nocompile/switch_12.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 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
1 // $HeadURL$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
2 // $Date$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
3 // $Author$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
4
144
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
6 // @date@ 2004-11-17
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
7 // @uri@ news:u1gr62-kjv.ln1@kuehne.cn
1485
774e02c900da 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=2288
144
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
9
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
10 // duplicate case "123" in switch statement
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
11
756
9a121126b077 major "Torture" review
thomask
parents: 374
diff changeset
12 // __DSTRESS_ELINE__ 22
374
f87ba6507260 added missing meta-data
thomask
parents: 144
diff changeset
13
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
14 module dstress.nocompile.switch_12;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
15
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
16 int main(){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
17 wchar[] array = "123";
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
18 switch(array){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
19 case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
20 assert(0);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
21 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
22 }case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
23 assert(1);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
24 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
25 }default:{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
26 return -1; // dummy
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
27 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
28 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
29
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
30 }