363
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Ben Hinkle <bhinkle@mathworks.com>
|
|
6 // @date@ 2005-03-23
|
|
7 // @uri@ news:d1s5gs$2odc$1@digitaldaemon.com
|
|
8
|
|
9 // @WARNING@ imports Phobos' gc
|
|
10
|
|
11 module dstress.run.align_08;
|
|
12
|
|
13 import std.gc;
|
|
14
|
|
15 struct S{
|
|
16 char[] font_face;
|
|
17 }
|
|
18
|
|
19 int main(){
|
|
20 S[] x;
|
|
21
|
|
22 for (int i=0;i<3;i++) {
|
|
23 S s;
|
|
24 s.font_face="font face".dup;
|
|
25 x ~= s;
|
|
26 }
|
|
27
|
|
28 fullCollect();
|
|
29
|
|
30 assert(x[0].font_face=="font face");
|
|
31 assert(x[1].font_face=="font face");
|
|
32
|
|
33 return 0;
|
|
34 } |