forked from boostorg/core
Test that BOOST_TEST_EQ doesn't emit sign-compare warnings
This commit is contained in:
19
test/lightweight_test_test5.cpp
Normal file
19
test/lightweight_test_test5.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Test that BOOST_TEST_EQ doesn't emit sign compare warnings
|
||||
//
|
||||
// Copyright 2019 Peter Dimov
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_TEST_EQ(1, 1u);
|
||||
BOOST_TEST_EQ(~0u, -1);
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
Reference in New Issue
Block a user