comparison nocompile/n/nested_class_04_C.d @ 1617:2c10afcfcf76

Move run/n/nested_class_04_{C,D} to nocompile. See DMD bug 80.
author Christian Kamm <kamm incasoftware de>
date Thu, 23 Jul 2009 19:49:42 +0200
parents run/n/nested_class_04_C.d@81222734adf3
children
comparison
equal deleted inserted replaced
1616:7b7967dd4203 1617:2c10afcfcf76
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ <jarrett.billingsley@gmail.com>
6 // @date@ 2006-04-02
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=80
8
9 module dstress.run.n.nested_class_04_C;
10
11 struct Outer{
12 int i;
13
14 class Inner{
15 int x;
16
17 this(){
18 x = i;
19 }
20 }
21
22 Inner test(){
23 Inner o;
24
25 void bug(){
26 o = new Inner();
27 }
28
29 bug();
30
31 return o;
32 }
33 }
34
35 int main(){
36 Outer* outer = new Outer();
37 outer.i = 1;
38 Outer.Inner inner = outer.test();
39 outer.i = 2;
40
41 if(inner.x != 1){
42 assert(0);
43 }
44
45 return 0;
46 }