• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2# Copyright 2011 Daniel James.
3# Distributed under the Boost Software License, Version 1.0. (See accompanying
4# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6import testing ;
7
8project detail/test/container_fwd
9  : requirements
10        <warnings>all
11        <toolset>intel:<warnings>on
12        <toolset>gcc:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion"
13        <toolset>darwin:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion"
14        <toolset>clang:<cxxflags>"-pedantic -Wextra -Wmismatched-tags"
15        <warnings-as-errors>on
16  ;
17
18run container_no_fwd_test.cpp ;
19run container_fwd_test.cpp : : : : container_fwd ;
20run container_fwd_test.cpp : :
21    : <define>_STLP_DEBUG <define>_GLIBCXX_DEBUG
22    : container_fwd_debug ;
23
24# The 'correctly_disable' tests fail if forward declaring standard types
25# could work, but is currently not being done. Unfortunately, this if often
26# the case - but we can't detect it, so the tests fail and there's not much
27# we can do. There are also problems because some compilers don't support
28# the debug version of their libraries. So I felt it was best to stop these
29# tests from running in a normal test run..
30
31compile-fail correctly_disable_fail.cpp
32    : <warnings-as-errors>off
33    : correctly_disable ;
34compile-fail correctly_disable_fail.cpp
35    : <warnings-as-errors>off <define>_STLP_DEBUG <define>_GLIBCXX_DEBUG
36    : correctly_disable_debug ;
37
38explicit correctly_disable ;
39explicit correctly_disable_debug ;
40