Mercurial > projects > dstress
annotate run/switch_19.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_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){ |
6fe8e3a31aed
auto / ~this() / "switch statement already has a default"
thomask
parents:
diff
changeset
|
16 auto T t=new T(); |
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 |