diff options
Diffstat (limited to 'test/util/compiler.test.cpp')
-rw-r--r-- | test/util/compiler.test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/util/compiler.test.cpp b/test/util/compiler.test.cpp new file mode 100644 index 000000000..44409a92c --- /dev/null +++ b/test/util/compiler.test.cpp @@ -0,0 +1,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"; +} |