forked from OSchip/llvm-project
parent
66369c03a3
commit
9570e7b04a
|
@ -19,7 +19,9 @@ int main()
|
|||
{
|
||||
typedef std::less<int> F;
|
||||
const F f = F();
|
||||
static_assert((std::is_base_of<std::binary_function<int, int, bool>, F>::value), "");
|
||||
static_assert((std::is_same<int, F::first_argument_type>::value), "" );
|
||||
static_assert((std::is_same<int, F::second_argument_type>::value), "" );
|
||||
static_assert((std::is_same<bool, F::result_type>::value), "" );
|
||||
assert(!f(36, 36));
|
||||
assert(!f(36, 6));
|
||||
assert(f(6, 36));
|
||||
|
|
Loading…
Reference in New Issue