Mercurial > projects > dstress
view run/b/bool_01.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 03b5056496f1 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.bool_01; int main(){ bool a; if(a.max != 1){ assert(0); } if(a.min != 0){ assert(0); } if(a.init != 0){ assert(0); } if(a.sizeof != typeid( bool ).tsize()){ assert(0); } a = true; if(a != 1){ assert(0); } bool b = 1; if(b != 1){ assert(0); } bool c = false; if(c != 0){ assert(0); } bool d = 0; if(d != 0){ assert(0); } return 0; }