Throw a warning even is NDEBUG is defined

This commit is contained in:
Erik Hofman 2011-12-19 15:34:11 +01:00
parent 69c5d5c86e
commit f28e472f59

View File

@ -43,9 +43,11 @@ bool testBasic()
double ff(aFoo);
assert(ff == 12.0); // comparison with literal
if (ff != 12.0) cout << "Error: a/foo != 12!" << endl;
const float fff(12.0f);
assert(fff == aFoo); // comparion with float value
if (fff != aFoo) cout << "Error: 12 != a/foo" << endl;
return true;
}