blob: b72d13569a40e8a93d676177d7ca9d52d46fc33e [file] [log] [blame]
// { dg-do compile { target c++14 } }
#define SA(X) static_assert((X),#X)
constexpr int f(int i) { { int j = i+1; return j; } }
constexpr int i = f(41);
struct S
{
constexpr S() { { constexpr int j = 17; SA(j == 17); } }
};
SA(i==42);