Fix epicsExceptionTest on darwin

Clang's optimizer seems to elide the new (nothrow) if we don't
actually observe the value of p...
This commit is contained in:
Andrew Johnson
2015-02-13 12:17:24 -06:00
parent 26ab431c0a
commit f874913cf7

View File

@@ -77,7 +77,7 @@ static void epicsExceptionTestPrivate ()
try {
char * p = new ( nothrow )
char [unsuccessfulNewSize];
testOk(p == 0, "new (nothrow)");
testOk(p == 0, "new (nothrow) returned %p", p);
}
catch( ... ) {
testFail("new (nothrow): threw");