Mercurial > projects > dstress
annotate run/f/function_05_E.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 | ecd311c97f12 |
children |
rev | line source |
---|---|
928 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <benoit@tionex.de> | |
6 // @date@ 2006-03-09 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
928
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=30 |
928 | 8 |
9 module dstress.run.f.function_05_E; | |
10 | |
11 class C{ | |
12 } | |
13 | |
14 C createC(){ | |
15 return new C(); | |
16 } | |
17 | |
18 C func(aliasFunc f){ | |
19 return f(); | |
20 } | |
21 | |
22 alias C function() aliasFunc; | |
23 | |
24 int main(){ | |
25 if(!func(&createC)){ | |
26 assert(0); | |
27 } | |
28 | |
29 return 0; | |
30 } |