assert(false) with -unittest
Jens Mueller
jens.k.mueller at gmx.de
Tue Nov 16 09:32:25 PST 2010
Hi,
assert(false) should generate the hlt instruction in release mode.
I.e.
assert.d:
void hlt() {
assert(false);
}
$ dmd -release -c assert.d
$ obj2asm assert.o | grep -w hlt
works. But
$ dmd -unittest -release -c assert.d
$ obj2asm assert.o | grep -w hlt
fails.
Can't one have hlt together with unittest? Is it a bug in the compiler
or correct behavior?
Jens
More information about the Digitalmars-d
mailing list