2003-09-29 15:38:40 +00:00
|
|
|
# Copyright (C) 2001-2003 Douglas Gregor
|
2023-01-19 10:01:52 +03:00
|
|
|
# Copyright (C) Antony Polukhin, 2011-2023
|
2012-04-05 03:53:58 +00:00
|
|
|
#
|
|
|
|
|
# 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)
|
|
|
|
|
#
|
2003-09-29 15:38:40 +00:00
|
|
|
|
|
|
|
|
import testing ;
|
2011-12-08 15:29:44 +00:00
|
|
|
import feature ;
|
2003-09-29 15:38:40 +00:00
|
|
|
|
2023-08-10 18:52:03 +03:00
|
|
|
import ../../config/checks/config : requires ;
|
|
|
|
|
|
2012-04-05 03:53:58 +00:00
|
|
|
project
|
|
|
|
|
: requirements
|
2023-08-25 14:59:53 +03:00
|
|
|
[ requires cxx11_rvalue_references ]
|
2013-07-12 11:33:15 +00:00
|
|
|
# default to all warnings on:
|
|
|
|
|
<warnings>all
|
|
|
|
|
# set warnings as errors for those compilers we know we get warning free:
|
|
|
|
|
<toolset>gcc:<cxxflags>-Wextra
|
|
|
|
|
<toolset>gcc:<cxxflags>-Wno-uninitialized
|
2012-04-05 03:53:58 +00:00
|
|
|
;
|
|
|
|
|
|
2003-09-29 15:38:40 +00:00
|
|
|
test-suite conversion
|
|
|
|
|
: [ run implicit_cast.cpp ]
|
|
|
|
|
[ compile-fail implicit_cast_fail.cpp ]
|
2013-12-04 20:11:33 +04:00
|
|
|
[ run cast_test.cpp ]
|
2014-06-11 14:35:27 +03:00
|
|
|
[ run polymorphic_cast_test.cpp ]
|
|
|
|
|
[ compile-fail implicit_cast_fail2.cpp ]
|
2012-04-05 03:53:58 +00:00
|
|
|
;
|