You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
206 B
Objective-C

#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;
}