Mercurial > projects > dstress
annotate run/t/typedef_13_H.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | bc3c8ee485f5 |
children |
rev | line source |
---|---|
906 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <jarrett.billingsley@gmail.com> | |
6 // @date@ 2006-03-11 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
906
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=36 |
906 | 8 |
9 module dstress.run.t.typedef_13_H; | |
10 | |
11 bool status = false; | |
12 | |
13 enum Enum { | |
14 ONE = 1, | |
15 TWO, | |
16 THREE | |
17 } | |
18 | |
19 class A { | |
20 void fork(EnumDG dg){ | |
21 dg(Enum.TWO); | |
22 } | |
23 | |
24 typedef void function(Enum) EnumDG; | |
25 } | |
26 | |
27 void test(Enum e){ | |
28 if(e != Enum.TWO){ | |
29 assert(0); | |
30 } | |
31 status = true; | |
32 } | |
33 | |
34 int main(){ | |
35 if(status){ | |
36 assert(0); | |
37 } | |
38 | |
39 A a = new A(); | |
40 a.fork(&test); | |
41 | |
42 if(!status){ | |
43 assert(0); | |
44 } | |
45 | |
46 return 0; | |
47 } | |
48 |