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