Mercurial > projects > dstress
view run/o/opAndAnd_02_A.d @ 1041:eb555fb95efc
added GDC-0.18 results
author | thomask |
---|---|
date | Sun, 04 Jun 2006 06:28:03 +0000 |
parents | |
children | 81222734adf3 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <clugdbug@yahoo.com.au> // @date@ 2006-05-29 // @uri@ news:bug-160-3@http.d.puremagic.com/bugzilla/ module dstress.run.o.opAndAnd_02_A; template fish(){ static assert(0); bool fish = true; } template dog(char [] bird){ static if(bird.length > 99){ const int dog = 2; }else{ const int dog = 3; } } const int pig = dog!("a"); int main(){ if(pig != 3){ assert(0); } return 0; }