summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test-files.json1
-rw-r--r--test/util/compiler.test.cpp14
2 files changed, 15 insertions, 0 deletions
diff --git a/test/test-files.json b/test/test-files.json
index e46f833269..9e486e2c5e 100644
--- a/test/test-files.json
+++ b/test/test-files.json
@@ -82,6 +82,7 @@
"test/tile/tile_id.test.cpp",
"test/tile/vector_tile.test.cpp",
"test/util/async_task.test.cpp",
+ "test/util/compiler.test.cpp",
"test/util/dtoa.test.cpp",
"test/util/geo.test.cpp",
"test/util/grid_index.test.cpp",
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";
+}