Mercurial > projects > dstress
annotate run/s/static_if_05_A.d @ 575:893c2d75daf4
basic static if testing
author | thomask |
---|---|
date | Sat, 11 Jun 2005 06:07:28 +0000 |
parents | |
children |
rev | line source |
---|---|
575 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> | |
6 // @date@ 2005-06-10 | |
7 // @uri@ news:oouon2-li3.ln1@lnews.kuehne.cn | |
8 // @desc@ mixing "static if" and "if" | |
9 | |
10 module dstress.run.s.static_of_05_A; | |
11 | |
12 int main(){ | |
13 const int i=1; | |
14 static if(i==1){ | |
15 return 0; | |
16 }else if(i==2){ | |
17 return 1; | |
18 } | |
19 } |