Mercurial > projects > dstress
annotate run/delegate_01.d @ 870:38ea1bb385b6
bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
author | thomask |
---|---|
date | Sun, 26 Feb 2006 17:45:46 +0000 |
parents | f87ba6507260 |
children | b8c0195059d9 |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
202 | 5 // @author@ Bent Rasmussen <exo@bent-rasmussen.info> |
0 | 6 // @date@ 2004-08-12 |
140 | 7 // @uri@ news:cfe9vt$1btr$1@digitaldaemon.com |
0 | 8 |
374 | 9 module dstress.run.delegate_01; |
10 | |
0 | 11 struct List(T){ |
12 T[] S; | |
13 | |
14 void bug(void delegate(inout T) f){ | |
15 f(S[0]); | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
870 | 20 List!(bool) list; |
0 | 21 return 0; |
22 } | |
23 |