summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept3.C
blob: 6e76ea8fa0b5519f7f12f6cf45e0734ab005886d (plain)
1
2
3
4
5
6
7
// { dg-options -std=c++0x }

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