Mercurial > projects > dstress
annotate run/s/scope_22_D.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 8d5c55d163fd |
children |
rev | line source |
---|---|
871 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ yama <yama_member@pathlink.com> | |
6 // @date@ 2006-02-26 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6373 |
871 | 8 |
9 // __DSTRESS_DFLAGS__ -version=always | |
10 | |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
11 module dstress.run.s.scope_22_D; |
871 | 12 |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
13 scope class C{ |
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
14 char[] toString(){ |
871 | 15 return "hallo bug"; |
16 } | |
17 } | |
18 | |
19 int main(){ | |
20 version(always){ | |
1615
8d5c55d163fd
Fix some outdated tests that used auto to mean scope.
Christian Kamm <kamm incasoftware de>
parents:
1560
diff
changeset
|
21 scope C c; |
871 | 22 c = new C(); |
23 } | |
24 | |
25 if(c.toString() != "hallo bug"){ | |
26 assert(0); | |
27 } | |
28 | |
29 return 0; | |
30 } | |
31 | |
32 | |
33 |