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 module dstress.run.align_09;
|
|
10
|
1559
|
11 version(Tango){
|
|
12 static assert(0, "DSTRESS{XFAIL}: Tango doesn't provide access to fullCollect");
|
|
13 }else{
|
|
14 // @WARNING@ imports Phobos' gc
|
|
15 import std.gc;
|
363
|
16
|
1559
|
17 struct S{
|
|
18 char[] font_face;
|
|
19 byte charset;
|
363
|
20 }
|
|
21
|
1559
|
22 int main(){
|
|
23 S[] x;
|
|
24
|
|
25 for (int i=0;i<3;i++) {
|
|
26 S s;
|
|
27 s.font_face="font face".dup;
|
|
28 x ~= s;
|
|
29 }
|
363
|
30
|
1559
|
31 fullCollect();
|
363
|
32
|
1559
|
33 assert(x[0].font_face=="font face");
|
|
34 assert(x[1].font_face=="font face");
|
|
35
|
|
36 return 0;
|
|
37 }
|
|
38 }
|