summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/variant2/test/Jamfile
blob: 1093712d30533cfbda8b27d3071aaae45e68a503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#  Boost.Variant2 Library Test Jamfile
#
#  Copyright 2015-2019 Peter Dimov
#
#  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

import testing ;
import ../../config/checks/config : requires ;

project
  : default-build

    <warnings>all

  : requirements

    [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr ]

    <toolset>msvc:<warnings-as-errors>on
    <toolset>gcc:<warnings-as-errors>on
    <toolset>clang:<warnings-as-errors>on
  ;

run variant_size.cpp ;
run variant_alternative.cpp ;

run variant_holds_alternative.cpp ;
compile variant_holds_alternative_cx.cpp ;

run variant_get_by_index.cpp ;
compile variant_get_by_index_cx.cpp ;

run variant_get_by_type.cpp ;
compile variant_get_by_type_cx.cpp ;

run variant_default_construct.cpp ;
compile variant_default_construct_cx.cpp ;

run variant_copy_construct.cpp ;
compile variant_copy_construct_cx.cpp : <toolset>msvc-14.0:<build>no ;

run variant_move_construct.cpp ;
compile variant_move_construct_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_value_construct.cpp ;
compile variant_value_construct_cx.cpp ;

run variant_in_place_index_construct.cpp ;
compile variant_in_place_index_construct_cx.cpp ;

run variant_in_place_type_construct.cpp ;
compile variant_in_place_type_construct_cx.cpp ;

run variant_copy_assign.cpp ;
compile variant_copy_assign_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_move_assign.cpp ;
compile variant_move_assign_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_value_assign.cpp ;
compile variant_value_assign_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_emplace_index.cpp ;
compile variant_emplace_index_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_emplace_type.cpp ;
compile variant_emplace_type_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_swap.cpp ;

run variant_eq_ne.cpp ;
compile variant_eq_ne_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_lt_gt.cpp ;
compile variant_lt_gt_cx.cpp : [ requires cxx14_constexpr ] ;

run variant_destroy.cpp ;
run variant_visit.cpp ;

run variant_convert_construct.cpp ;
run variant_subset.cpp ;
run variant_valueless.cpp ;

run variant_copy_construct_throw.cpp ;
run variant_move_construct_throw.cpp ;
run variant_convert_construct_throw.cpp ;

run variant_copy_assign_throw.cpp ;
run variant_move_assign_throw.cpp ;

local NX =
    <exception-handling>off
    <toolset>msvc:<cxxflags>/wd4530
    <toolset>msvc:<cxxflags>/wd4577
    ;

run variant_get_by_index.cpp throw_exception.cpp : : : $(NX) : variant_get_by_index_nx ;
compile variant_get_by_index_cx.cpp : $(NX) : variant_get_by_index_cx_nx ;

run variant_get_by_type.cpp throw_exception.cpp : : : $(NX) : variant_get_by_type_nx ;
compile variant_get_by_type_cx.cpp : $(NX) : variant_get_by_type_cx_nx ;

run variant_subset.cpp throw_exception.cpp : : : $(NX) : variant_subset_nx ;