annotate run/e/enum_41_C.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
1 // $HeadURL$
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
2 // $Date$
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
3 // $Author$
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
4
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.cn>
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
6 // @date@ 2005-11-04
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1091
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5307
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
8
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
9 module dstress.run.e.enum_41_C;
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
10
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
11 enum E : short{
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
12 A = 1,
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
13 B = 2,
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
14 C = 3
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
15 }
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
16
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
17 int main(){
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
18 short[] array;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 728
diff changeset
19
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
20 E e = E.B;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 728
diff changeset
21
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
22 array = array ~ e;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 728
diff changeset
23
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
24 assert(array.length==1);
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
25 assert(array[0]==E.B);
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 728
diff changeset
26
728
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
27 return 0;
a938b1b6d583 Thomas Kuehne <thomas-dloop@kuehne.cn>
thomask
parents:
diff changeset
28 }