1370
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Johan Granberg <lijat.me@gmail.com>
|
|
6 // @date@ 2007-01-17
|
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853
|
|
8 // @desc@ [Issue 853] Internal error: toir.c 182
|
|
9
|
|
10 module dstress.run.b.bug_toir_182_B;
|
|
11
|
|
12 class StackContext{
|
|
13 this(void delegate() dg){
|
|
14 }
|
|
15 }
|
|
16
|
|
17 class Test{
|
|
18 StackContext context;
|
|
19
|
|
20 void init(){
|
|
21 context = new StackContext({});
|
|
22 }
|
|
23
|
|
24 this(){
|
|
25 init();
|
|
26 }
|
|
27 }
|
|
28
|
|
29 int main(){
|
|
30 Test t = new Test();
|
|
31 if(!t){
|
|
32 assert(0);
|
|
33 }
|
|
34 if(!t.context){
|
|
35 assert(0);
|
|
36 }
|
|
37 return 0;
|
|
38 }
|