annotate run/switch_14.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
160
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
1 // $HeadURL$
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
2 // $Date$
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
3 // $Author$
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
4
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
6 // @date@ 2004-11-17
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
7 // @uri@ news:l3hr62-qov.ln1@kuehne.cn
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=2289
160
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
9
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
10 module dstress.run.switch_14;
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
11
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
12 int main(){
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
13 dchar[] array = "123";
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
14 switch(array){
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
15 case "12":{
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
16 assert(0);
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
17 }case "123":{
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
18 return 0;
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
19 }case "1234":{
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
20 assert(0);
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
21 }default:{
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
22 assert(0);
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
23 }
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
24 }
89eb836b12ac adapted feature "switch(dchar[])"
thomask
parents:
diff changeset
25 }