3 /* This tests that exceptions work. It used to fail because
4 objc_msgSend was marked with DECL_NOTHROW.
5 If you include objc/Object.h, the problem goes away, because
6 that file includes objc/objc-runtime.h which explicitly prototypes
7 objc_msgSend without 'nothrow'. */
20 // ObjectiveC class header
21 @interface ObjCclass : Object {
35 int main(int argc, char *argv[])
37 ObjCclass * foo = [[ObjCclass alloc] init];
43 // ObjectiveC implementation
44 @implementation ObjCclass
66 void CPPclass::function1()
69 /* Shouldn't be here because we threw. */