summaryrefslogtreecommitdiff
path: root/TestPrograms/test_cxx17_exceptions.cpp
blob: b2401a3846bf2e51fa0c886360f4f9ca9ffd575f (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://en.cppreference.com/w/cpp/feature_test
#include <exception>
int main(int argc, char* argv[])
{
#if __cpp_lib_uncaught_exceptions >= 201411L
    int x = std::uncaught_exceptions();
#else
    int x[-1];
#endif
    return 0;
}