/* Check that overloaded builtins can be used in templates with SFINAE. */ // { dg-do compile { target c++17 } } /* Checks performed here: Too many arguments (for any type three arguments should be invalid). */ #define SFINAE_TYPE_CHECK(PARAMS, SHORTENED_PARAMS, INVALID_PARAMS) \ template \ struct is_available : std::false_type {}; \ template \ struct is_available())) >> \ : std::true_type {}; /* All types should fail with three arguments. */ #define MAKE_SPECULATION_ASSERT(TYPE, SUCCESS) \ static_assert(is_available::value == false); #include "builtin-speculation-overloads.def"