Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-noexcept3.C
blob6e76ea8fa0b5519f7f12f6cf45e0734ab005886d
1 // { dg-options -std=c++0x }
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)));