1314
|
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 }
|