1# Copyright (C) 2001-2003 Douglas Gregor 2# Copyright (C) 2011-2021 Antony Polukhin 3# 4# Distributed under the Boost Software License, Version 1.0. (See accompanying 5# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6# 7 8import testing ; 9import feature ; 10 11project 12 : requirements 13 <toolset>gcc-4.7:<cxxflags>-ftrapv 14 <toolset>gcc-4.6:<cxxflags>-ftrapv 15 <toolset>clang:<cxxflags>-ftrapv 16 # default to all warnings on: 17 <warnings>all 18 # set warnings as errors for those compilers we know we get warning free: 19 <toolset>gcc:<cxxflags>-Wextra 20 <toolset>gcc:<cxxflags>-Wno-uninitialized 21 ; 22 23test-suite conversion 24 : [ run implicit_cast.cpp ] 25 [ compile-fail implicit_cast_fail.cpp ] 26 [ run cast_test.cpp ] 27 [ run polymorphic_cast_test.cpp ] 28 [ compile-fail implicit_cast_fail2.cpp ] 29 ; 30