I spent a few hours debugging once because my code was built without asserts and I asserted that a function call in C returned true.
So this is something that one needs to be careful about and perhaps run integration/system tests with release builds.