# HG changeset patch # User thomask # Date 1118424114 0 # Node ID 56951036e398fb9f50ffc774f1a47a96e67641a3 # Parent 139307e27398e438d6e0af814252f6fc0e7cef20 mixing "static if" and "if" Thomas Kuehne 2005-06-10 news:oouon2-li3.ln1@lnews.kuehne.cn diff -r 139307e27398 -r 56951036e398 undefined/static_if_05_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/static_if_05_A.d Fri Jun 10 17:21:54 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne +// @date@ 2005-06-10 +// @uri@ news:oouon2-li3.ln1@lnews.kuehne.cn +// @desc@ mixing "static if" and "if" + +module dstress.undefined.static_of_05_A; + +int main(){ + const int i=1; + static if(i==1){ + return 0; + }else if(i==2){ + return 1; + } +} diff -r 139307e27398 -r 56951036e398 undefined/static_if_05_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/undefined/static_if_05_B.d Fri Jun 10 17:21:54 2005 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Thomas Kuehne +// @date@ 2005-06-10 +// @uri@ news:oouon2-li3.ln1@lnews.kuehne.cn +// @desc@ mixing "static if" and "if" + +module dstress.undefined.static_of_05_B; + +int main(){ + const int i=1; + if(i==1){ + return 0; + }else static if(i==2){ + return 1; + }else if(i==3){ + return 2; + } +}