ASSERT(apples = 1);
VERIFY(oranges = 2);
(Note the '=' means assignment, not comparison.)Both are assertion-testers resulting in a core dump if the test fails, but ASSERT is only defined for DEBUG builds.
Since the assignments are to nonzero (true) values, buggy values of 'apples' are silently corrected -- but only during test runs. Buggy values of 'oranges' are always silently corrected.
Hilarity ensued. Afterwards, 'gcc -Wparentheses' became mandatory.