Mercurial > projects > dstress
comparison run/a/auto_20_A.d @ 1549:1e01d8b3e715
Dave <godaves@yahoo.com>
2006-11-26
http://d.puremagic.com/issues/show_bug.cgi?id=606
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:41:38 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1548:00ac8cb240eb | 1549:1e01d8b3e715 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Dave <godaves@yahoo.com> | |
6 // @date@ 2006-11-26 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=606 | |
8 | |
9 module dstress.run.a.auto_20_A; | |
10 | |
11 int prop() { | |
12 return 0x12AA34FF; | |
13 } | |
14 | |
15 int main(){ | |
16 auto x = prop; | |
17 static assert(is(typeof(x) == int)); | |
18 | |
19 if(0x12AA34FF != x){ | |
20 assert(0); | |
21 } | |
22 | |
23 return 0; | |
24 } |