Mercurial > projects > dstress
annotate run/a/auto_16_B.d @ 871:375f22f2c56e
yama <yama_member@pathlink.com>
2006-02-26
news:dtr1ms$2upj$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 01 Mar 2006 18:06:04 +0000 |
parents | |
children | b8c0195059d9 |
rev | line source |
---|---|
871 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ yama <yama_member@pathlink.com> | |
6 // @date@ 2006-02-26 | |
7 // @uri@ news:dtr1ms$2upj$1@digitaldaemon.com | |
8 | |
9 // __DSTRESS_DFLAGS__ -version=always | |
10 | |
11 module dstress.run.a.auto_16_B; | |
12 | |
13 class C{ | |
14 char[] toString(){ | |
15 return "hallo bug"; | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
20 version(always){ | |
21 auto C c; | |
22 c = new C(); | |
23 } | |
24 | |
25 if(c.toString() != "hallo bug"){ | |
26 assert(0); | |
27 } | |
28 | |
29 return 0; | |
30 } | |
31 | |
32 | |
33 |