Mercurial > projects > dstress
view run/b/bool_01.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
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; }