Mercurial > projects > dstress
annotate undefined/default_argument_10.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | 095c4b3c140b |
children |
rev | line source |
---|---|
862 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Unknown W. Brackets <unknown@simplemachines.org> | |
6 // @date@ 2006-02-19 | |
7 // @uri@ news:dtb7ee$gjq$1@digitaldaemon.com | |
8 | |
9 module dstress.undefined.default_argument_10; | |
10 | |
11 void test(out int i = 5){ | |
12 assert(i == 5); | |
13 } | |
14 | |
15 int main(){ | |
16 int i; | |
17 test(i); | |
18 | |
19 assert(i == 5); | |
20 | |
21 return 0; | |
22 } | |
23 |