Mercurial > projects > dstress
annotate nocompile/debug_info_02.d @ 739:0ea4c218a3ee
updated meta data for Torture
author | thomask |
---|---|
date | Sat, 12 Nov 2005 07:32:34 +0000 |
parents | b1bb3423e2c3 |
children | b8c0195059d9 |
rev | line source |
---|---|
387 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Regan Heath <regan@netwin.co.nz> | |
6 // @date@ 2005-03-25 | |
7 // @uri@ news:opsn61vgpg23k2f5@nrage.netwin.co.nz | |
8 | |
739 | 9 // __DSTRESS_ELINE__ 13 |
387 | 10 |
11 module dstress.nocompile.debug_info_02; | |
12 | |
13 typedef fn function() fn; | |
14 | |
15 byte status; | |
16 | |
17 fn foo() { | |
18 status++; | |
19 return &foo; | |
20 } | |
21 | |
22 int main(){ | |
23 assert(status==0); | |
24 fn p = foo(); | |
25 assert(status==1); | |
26 p(); | |
27 assert(status==2); | |
28 return 0; | |
29 } |