Mercurial > projects > dstress
annotate run/switch_21.d @ 412:6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
dickl <dick221z@yahoo.com>
2005-04-08
news:d36gav$31fo$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 08 Apr 2005 19:19:04 +0000 |
parents | |
children | b8c0195059d9 |
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 |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
7 // @uri@ news:d36gav$31fo$1@digitaldaemon.com |
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_21; |
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 } |
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 int main(char[][] args){ |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
15 auto T t=new T(); |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
16 |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
17 switch(args.length){ |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
18 case 1: |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
19 break; |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
20 |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
21 default: |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
22 assert(0); |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
23 break; |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
24 } |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
25 return 0; |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
26 } |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
27 |