#include <iostream>
typedef int (*Function)();
static Function Do;
static int EraseAll() {
std::cout << "Safe!\n";
return 1;
}
void NeverCalled() {
Do = EraseAll;
}
int test() {
return Do();
}
Describe(test_compiler_optimization_flag)
{
It(should_not_crash)
{
test();
}
};