PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-noexcept3.C
blob9541bc0781d501b4c1f310b8635673867441e36d
1 // { dg-do compile { target c++11 } }
3 constexpr int f(int i) { return i; }
4 #define SA(X) static_assert (X, #X)
5 SA(noexcept(f(42)));
6 int j;
7 SA(!noexcept(f(j)));