Fix throwing nil exceptions.
parent
b0fba94d8b
commit
b2e7c50704
@ -0,0 +1,17 @@
|
||||
#include "Test.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
BOOL caught_exception = NO;
|
||||
@try
|
||||
{
|
||||
@throw(nil);
|
||||
}
|
||||
@catch (id x)
|
||||
{
|
||||
assert(nil == x);
|
||||
caught_exception = YES;
|
||||
}
|
||||
assert(caught_exception == YES);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue