Mercurial > projects > dstress
diff run/s/static_if_04_B.d @ 575:893c2d75daf4
basic static if testing
author | thomask |
---|---|
date | Sat, 11 Jun 2005 06:07:28 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_if_04_B.d Sat Jun 11 06:07:28 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dtsress.run.s.static_if_04_D; + +const int i = 1; + +int main(){ + static if(i==2){ + static assert(0); + }else{ + return 0; + } +}