summaryrefslogtreecommitdiff
path: root/test/util/compiler.test.cpp
blob: 44409a92cad69168ff06a0078dad34baa1678cd2 (plain)
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";
}