1 // PR c++/52892 2 // { dg-do compile { target c++11 } } 3 is_negative(int x)4 constexpr bool is_negative(int x) { return x < 0; } 5 typedef bool (*Function)(int); check(int x,Function p)6 constexpr bool check(int x, Function p) { return p(x); } 7 static_assert(check(-2, is_negative), "Error"); 8