aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cplusplus/cxx11/data/noExcept.1.cpp
blob: cac18860c9b028e71158c00380f8f5bd26ba3c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
void f() noexcept {
}

void g() noexcept(1) {
}

void h() noexcept(noexcept(f())) {

}

template<typename T, bool _Nothrow = noexcept(h()), typename = decltype(T())>
struct S
{
};

int main()
{
    bool noExcept_hf = noexcept(h()) && noexcept(f());
}