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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user