comparison run/o/opCall_03_A.d @ 1314:198b48f868e6

[Issue 766] dmd.exe crash Boris Kolar <boris.kolar@globera.com> 2006-12-29 http://d.puremagic.com/issues/show_bug.cgi?id=766
author thomask
date Sun, 31 Dec 2006 14:28:46 +0000
parents
children
comparison
equal deleted inserted replaced
1313:f6001af60ca0 1314:198b48f868e6
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Boris Kolar <boris.kolar@globera.com>
6 // @date@ 2006-12-29
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=766
8 // @desc@ [Issue 766] dmd.exe crash
9
10 module dstress.run.o.opCall_03_A;
11
12 struct Foo{
13 static Foo opCall() {
14 Foo f = Foo.init;
15 f.a = "abc";
16 return f;
17 }
18
19 char[] a;
20 bool b = true;
21 }
22
23 int main(){
24 Foo f = Foo();
25 if(f.a != "abc"){
26 assert(0);
27 }
28 if(!f.b){
29 assert(0);
30 }
31 return 0;
32 }