Mercurial > projects > dstress
annotate run/a/auto_16_A.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 module dstress.run.a.auto_16_A; | |
10 | |
11 class C{ | |
12 char[] toString(){ | |
13 return "hallo bug"; | |
14 } | |
15 } | |
16 | |
17 int main(){ | |
18 auto C c; | |
19 version(all){ | |
20 c = new C(); | |
21 } | |
22 | |
23 if(c.toString() != "hallo bug"){ | |
24 assert(0); | |
25 } | |
26 | |
27 return 0; | |
28 } | |
29 | |
30 | |
31 |