#include <cstdio>
#include <cstdlib>
#include <new>

using namespace std;

bool f = false;

class Obj {
public:
	Obj() { if (f) throw 123; }
};

Obj* no_ptr;

void operator delete(void* ptr)
{
	printf("Object deleted\n");
}

int main(int argc)
{
	if (argc > 1) {
		f = true;
	}
	char buffer[80];
	try {
		no_ptr = new(buffer) Obj;
	} catch (...) {
		printf("Exception\n");
	}
}
