363
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Ben Hinkle <bhinkle@mathworks.com>
|
|
6 // @date@ 2005-03-23
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3313
|
363
|
8
|
|
9
|
|
10 module dstress.run.align_08;
|
|
11
|
1559
|
12 version(Tango){
|
|
13 static assert(0, "DSTRESS{XFAIL}: Tango doesn't provide access to fullCollect");
|
|
14 }else{
|
|
15 // @WARNING@ imports Phobos' gc
|
363
|
16
|
1559
|
17 import std.gc;
|
363
|
18
|
1559
|
19 struct S{
|
|
20 char[] font_face;
|
363
|
21 }
|
|
22
|
1559
|
23 int main(){
|
|
24 S[] x;
|
|
25
|
|
26 for (int i=0;i<3;i++) {
|
|
27 S s;
|
|
28 s.font_face="font face".dup;
|
|
29 x ~= s;
|
|
30 }
|
363
|
31
|
1559
|
32 fullCollect();
|
363
|
33
|
1559
|
34 assert(x[0].font_face=="font face");
|
|
35 assert(x[1].font_face=="font face");
|
|
36
|
|
37 return 0;
|
|
38 }
|
|
39 }
|