annotate run/switch_19.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 7b7967dd4203
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
412
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
1 // $HeadURL$
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
2 // $Date$
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
3 // $Author$
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
4
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
5 // @author@ dickl <dick221z@yahoo.com>
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
6 // @date@ 2005-04-08
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 412
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3566
412
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
8
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
9 module dstress.run.switch_19;
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
10
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
11 class T{
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
12 ~this(){}
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
13 }
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
14
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
15 int main(char[][] args){
1616
7b7967dd4203 More auto -> scope changes.
Christian Kamm <kamm incasoftware de>
parents: 1489
diff changeset
16 scope T t=new T();
412
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
17
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
18 switch(args.length){
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
19 case 1:
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
20 break;
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
21
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
22 default:
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
23 assert(0);
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
24 break;
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
25 }
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
26 return 0;
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
27 }
6fe8e3a31aed auto / ~this() / "switch statement already has a default"
thomask
parents:
diff changeset
28