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_10;
|
|
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;
|
|
20 }
|
363
|
21
|
1559
|
22 int main(){
|
|
23 S[] x;
|
363
|
24
|
1559
|
25 S s;
|
|
26 s.font_face="font face".dup;
|
|
27 x ~= s;
|
|
28 s.font_face="font face".dup;
|
|
29 x ~= s;
|
|
30 s.font_face="font face".dup;
|
|
31 x ~= s;
|
|
32 s.font_face="font face".dup;
|
|
33 x ~= s;
|
363
|
34
|
1559
|
35 fullCollect();
|
363
|
36
|
1559
|
37 assert(x[0].font_face=="font face");
|
|
38 assert(x[1].font_face=="font face");
|
363
|
39
|
1559
|
40 return 0;
|
|
41 }
|
|
42 }
|