Mercurial > projects > dstress
changeset 1533:ac560364010c
enforce checks for -release builds
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:36:34 +0000 |
parents | 94502f22d55e |
children | 345207906be7 |
files | run/o/odd_bug_13_A.d |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/run/o/odd_bug_13_A.d Fri Apr 27 17:35:45 2007 +0000 +++ b/run/o/odd_bug_13_A.d Fri Apr 27 17:36:34 2007 +0000 @@ -31,8 +31,14 @@ int main(){ char[][char[]] array = AA!(char[], char[])("a", "b", "c", "d"); - assert(2 == array.length); - assert("b" == array["a"]); - assert("d" == array["c"]); + if(2 != array.length){ + assert(0); + } + if("b" != array["a"]){ + assert(0); + } + if("d" != array["c"]){ + assert(0); + } return 0; }