]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | # Copyright (C) 2001-2003 Douglas Gregor |
1e59de90 | 2 | # Copyright (C) Antony Polukhin, 2011-2022 |
7c673cae FG |
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 | ||
8 | import testing ; | |
9 | import feature ; | |
10 | ||
11 | project | |
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 | ||
23 | test-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 | ; |