annotate run/bug_todt_194_B.d @ 266:8a0f597f549a

fixed bug_todt_194
author thomask
date Fri, 04 Feb 2005 00:02:02 +0000
parents nocompile/bug_todt_194_B.d@fd1663a1f2dd
children 0eb25b549476
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
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
9 module dstress.run.bug_todt_194_B;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
10
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
11 int main(){
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
12 assert(new MyStruct!().i==int.sizeof);
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
13 return 0;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
14 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
15
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
16 struct MyStruct(){
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
17 int i=func(0).sizeof;
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
18 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
19
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
20 int func(...){
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
21 return 0;
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
22 }
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
23