comparison run/s/scope_22_C.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_C.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_C;
12
13 scope class C{
14 char[] toString(){
15 return "hallo bug";
16 }
17 }
18
19 int main(){
20 scope C c;
21 version(always){
22 c = new C();
23 }
24
25 if(c.toString() != "hallo bug"){
26 assert(0);
27 }
28
29 return 0;
30 }
31
32
33