1#include "Test.h"
2
3#if __cplusplus
4#error This is not an ObjC++ test!
5#endif
6
7
8id a;
9int throw(void)
10{
11	@throw a;
12}
13
14
15int main(void)
16{
17	id e1 = [Test new];
18	id e2 = [Test new];
19	@try
20	{
21		a = e1;
22		throw();
23	}
24	@catch (id x)
25	{
26		assert(x == e1);
27		@try {
28			a = e2;
29			@throw a;
30		}
31		@catch (id y)
32		{
33			assert(y == e2);
34		}
35	}
36	[e1 dealloc];
37	[e2 dealloc];
38	return 0;
39}
40