annotate nocompile/bug_todt_194_A.d @ 265:fd1663a1f2dd

new'ing a templated struct zwang <nehzgnaw@gmail.com> 2005-02-03 news:cttjcg$44f$1@digitaldaemon.com
author thomask
date Thu, 03 Feb 2005 23:56:50 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
1 // $HeadURL$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
2 // $Date$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
3 // $Author$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
4
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
5 // @author@ zwang <nehzgnaw@gmail.com>
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
6 // @date@ 2005-02-03
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
7 // @uri@ news:cttjcg$44f$1@digitaldaemon.com
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
8
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
9 module dstress.nocompile.bug_todt_194_A;
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
10
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
11 void main(){
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
12 assert((new MyStruct!()).i==4);
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
13 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
14
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
15 struct MyStruct(){
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
16 int i=func(0).sizeof;
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
17 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
18
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
19 int func(...);
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
20