comparison run/s/static_if_05_B.d @ 575:893c2d75daf4

basic static if testing
author thomask
date Sat, 11 Jun 2005 06:07:28 +0000
parents
children
comparison
equal deleted inserted replaced
574:36e896c73c8a 575:893c2d75daf4
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_B;
11
12 int main(){
13 const int i=3;
14 if(i==1){
15 return 2;
16 }else static if(i==2){
17 return 1;
18 }else if(i==3){
19 return 0;
20 }
21 }