1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
15 #include <type_traits>
18 #include "test_macros.h"
22 typedef std::logical_or<int> F;
24 static_assert((std::is_same<int, F::first_argument_type>::value), "" );
25 static_assert((std::is_same<int, F::second_argument_type>::value), "" );
26 static_assert((std::is_same<bool, F::result_type>::value), "" );
32 typedef std::logical_or<> F2;
45 constexpr bool foo = std::logical_or<int> () (36, 36);
46 static_assert ( foo, "" );
48 constexpr bool bar = std::logical_or<> () (36.0, 36);
49 static_assert ( bar, "" );