summaryrefslogtreecommitdiff
path: root/TestPrograms/test_cxx98_exception.cpp
blob: 4af903d492ee07cf5e1f390eb3d29d3d644e8743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <exception>
struct S {
    S() {}
    virtual ~S() {
        bool b = std::uncaught_exception();
    }
};
int main(int argc, char* argv[])
{
    S s;
    return 0;
}