annotate compile/template_struct_02.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents 8a2ff09d62cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
202
4cd33115f015 1) fixed @author@ typos
thomask
parents: 21
diff changeset
1 // $HeadURL$
4cd33115f015 1) fixed @author@ typos
thomask
parents: 21
diff changeset
2 // $Date$
4cd33115f015 1) fixed @author@ typos
thomask
parents: 21
diff changeset
3 // $Author$
4cd33115f015 1) fixed @author@ typos
thomask
parents: 21
diff changeset
4
4cd33115f015 1) fixed @author@ typos
thomask
parents: 21
diff changeset
5 // @author@ Daniel Horn <hellcatv@hotmail.com>
21
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
6 // @date@ 2004-05-06
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
7
358
8a2ff09d62cb dif. fixes 1
thomask
parents: 202
diff changeset
8 module dstress.compile.template_struct_02;
8a2ff09d62cb dif. fixes 1
thomask
parents: 202
diff changeset
9
21
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
10 struct vec(int size){
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
11 float data[size];
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
12 vec!(1) first(){
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
13 vec!(1) t;
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
14 t.data[0]=data[0];
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
15 return t;
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
16 }
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
17 }
9fd186cd378a moved and deleted bad tests
thomask
parents:
diff changeset
18