summaryrefslogtreecommitdiff
path: root/test/util/compiler.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/compiler.test.cpp')
-rw-r--r--test/util/compiler.test.cpp14
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 0000000000..44409a92ca
--- /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";
+}