Mercurial > projects > dstress
view run/debug_02.d @ 84:91feffeeafa6
used the new ?DSTRESS_FLAGS? support to
1) simpilfy some complex tests
2) extend command_line_debug and command_line_version tests
author | thomask |
---|---|
date | Fri, 29 Oct 2004 21:04:52 +0000 |
parents | |
children | 659bb018c489 |
line wrap: on
line source
// @author@ Thomas Kuehne <eisvogel@users.sourceforge.net> // @date@ 2004-10-16 // @uri@ news://ckro4i$1b4l$2@digitaldaemon.com // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2119 // §DSTRESS_FLAGS§ -debug=2 module dstress.run.debug_02; int main(){ int i=0; assert(i==0); debug(1){ assert(0); } debug(2){ i++; assert(i==1); } debug(3){ i++; assert(i==2); } assert(i==2); return 0; }