Mercurial > projects > dstress
annotate run/switch_19.d @ 1599:d37b19f7e8bb
Move run/c/case_01 to nocompile.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 17:28:31 +0200 |
parents | b8c0195059d9 |
children | 7b7967dd4203 |
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 | 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){ |
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 |