Mercurial > projects > dstress
comparison run/s/scope_22_F.d @ 1615:8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Jul 2009 16:44:52 +0200 |
parents | run/a/auto_16_F.d@36bedfa079e6 |
children |
comparison
equal
deleted
inserted
replaced
1614:709f6451b315 | 1615:8d5c55d163fd |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ yama <yama_member@pathlink.com> | |
6 // @date@ 2006-02-26 | |
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373 | |
8 | |
9 // __DSTRESS_DFLAGS__ -version=always | |
10 | |
11 module dstress.run.s.scope_22_F; | |
12 | |
13 class C{ | |
14 char[] toString(){ | |
15 return "hallo bug"; | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
20 version(always){ | |
21 scope C c; | |
22 c = new C(); | |
23 } | |
24 | |
25 if((new C()).toString() != "hallo bug"){ | |
26 assert(0); | |
27 } | |
28 | |
29 version(always){ | |
30 if(c.toString() != "hallo bug"){ | |
31 assert(0); | |
32 } | |
33 } | |
34 | |
35 return 0; | |
36 } | |
37 | |
38 | |
39 |