Mercurial > projects > dstress
annotate run/bug_todt_194_B.d @ 353:0eb25b549476
fixed precedence problem
Walter <walter@digitalmars.com>
2005-03-22
mail:008901c52ec3$f6857910$0200a8c0@colossus
author | thomask |
---|---|
date | Tue, 22 Mar 2005 11:41:47 +0000 |
parents | 8a0f597f549a |
children | b8c0195059d9 |
rev | line source |
---|---|
265 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ zwang <nehzgnaw@gmail.com> | |
6 // @date@ 2005-02-03 | |
7 // @uri@ news:cttjcg$44f$1@digitaldaemon.com | |
8 | |
266 | 9 module dstress.run.bug_todt_194_B; |
265 | 10 |
266 | 11 int main(){ |
353 | 12 assert((new MyStruct!()).i==int.sizeof); |
266 | 13 return 0; |
265 | 14 } |
15 | |
16 struct MyStruct(){ | |
17 int i=func(0).sizeof; | |
18 } | |
19 | |
266 | 20 int func(...){ |
21 return 0; | |
22 } | |
265 | 23 |