blob: 5a43899b5fa0950794df5a28cbb0b39c871b96cd [file] [log] [blame]
// { dg-do compile { target c++11 } }
constexpr int f(int i) { return i; }
#define SA(X) static_assert (X, #X)
/* We used to assert that the following *is* noexcept, but this has changed
in c++/87603. */
SA(!noexcept(f(42)));
int j;
SA(!noexcept(f(j)));