aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept3.C
blob: 9541bc0781d501b4c1f310b8635673867441e36d (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++11 } }

constexpr int f(int i) { return i; }
#define SA(X) static_assert (X, #X)
SA(noexcept(f(42)));
int j;
SA(!noexcept(f(j)));