1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <mbgl/test/util.hpp> #include <stdexcept> TEST(Compiler, ExceptionQuirk) { try { throw std::invalid_argument("foo"); } catch (const std::exception&) { SUCCEED(); return; } FAIL() << "Should never be called"; }