mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 10:07:41 +08:00
Mark LWG issue 2450 as complete.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
#include <type_traits>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "pointer_comparison_test_helper.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
typedef std::less_equal<int> F;
|
||||
@@ -25,7 +28,12 @@ int main()
|
||||
assert(f(36, 36));
|
||||
assert(!f(36, 6));
|
||||
assert(f(6, 36));
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
{
|
||||
// test total ordering of int* for less_equal<int*> and
|
||||
// less_equal<void>.
|
||||
do_pointer_comparison_test<int, std::less_equal>();
|
||||
}
|
||||
#if TEST_STD_VER > 11
|
||||
typedef std::less_equal<> F2;
|
||||
const F2 f2 = F2();
|
||||
assert( f2(36, 36));
|
||||
|
Reference in New Issue
Block a user