Avoid unused expression warning by using the expression

This commit is contained in:
Peter Dimov
2018-01-22 05:21:08 +02:00
parent 3b988e278b
commit 0b18289a85

View File

@ -10,19 +10,19 @@
// This test verifiies that the error_category vtable does not suffer from
// order-of-initialization problems.
#include <boost/detail/lightweight_test.hpp>
#include <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
struct foo
{
foo()
{
boost::system::error_code ec;
ec == boost::system::errc::permission_denied;
BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
}
} f;
int main( int, char ** )
int main()
{
return ::boost::report_errors();
return boost::report_errors();
}