#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
jmp_buf point0;
int val;
class Bullet
{
public:
	Bullet(){
		printf("Bullet(): \n");	
		if(!val)  longjmp(point0, 1); 
	}
	~Bullet(){printf("~Bullet(): \n");}
};
void or()
{
	Bullet b;
}
int main()
{
  val=setjmp(point0);
  or();
  printf ("val is %d \n",val);
  return 0;
}
