Skip to content

Commit df3f4ff

Browse files
Update regression tests after recent changes (#1208)
Signed-off-by: Herb Sutter <[email protected]> Co-authored-by: Herb Sutter <[email protected]>
1 parent 0975248 commit df3f4ff

27 files changed

+103
-32
lines changed

regression-tests/test-results/apple-clang-14-c++2b/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(937) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
1+
../../../include/cpp2util.h(964) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(749) : Bounds safety violation
1+
../../../include/cpp2util.h(776) : Bounds safety violation
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(749) : Contract violation: fill: value must contain at least count elements
1+
../../../include/cpp2util.h(776) : Contract violation: fill: value must contain at least count elements
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
sending error to my framework... [dynamic null dereference attempt detected]
2-
from source location: ../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
2+
from source location: ../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::expected<int, bool>]: Null safety violation: std::expected has an unexpected value
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::expected<int, bool>]: Null safety violation: std::expected has an unexpected value
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int> &]: Null safety violation: std::unique_ptr is empty
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int>]: Null safety violation: std::unique_ptr is empty

regression-tests/test-results/apple-clang-15-c++2b/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)

regression-tests/test-results/clang-15-c++20-libcpp/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(937) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
1+
../../../include/cpp2util.h(964) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(749) : Bounds safety violation
1+
../../../include/cpp2util.h(776) : Bounds safety violation
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(749) : Contract violation: fill: value must contain at least count elements
1+
../../../include/cpp2util.h(776) : Contract violation: fill: value must contain at least count elements
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
sending error to my framework... [dynamic null dereference attempt detected]
2-
from source location: ../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
2+
from source location: ../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int> &]: Null safety violation: std::unique_ptr is empty
1+
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int>]: Null safety violation: std::unique_ptr is empty

regression-tests/test-results/clang-15-c++20/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)

regression-tests/test-results/clang-18-c++20/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)

regression-tests/test-results/clang-18-c++23-libcpp/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
In file included from mixed-bugfix-for-ufcs-non-local.cpp:6:
22
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
3-
2100 | //
3+
2100 | constexpr auto is( X const& x ) -> bool
44
| ^
55
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
6-
2137 | // Value case
6+
2137 |
77
| ^
88
mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
99
mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid
1010
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
11-
2100 | //
11+
2100 | constexpr auto is( X const& x ) -> bool
1212
| ^
1313
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
14-
2137 | // Value case
14+
2137 |
1515
| ^
1616
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
1717
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
1818
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
19-
2100 | //
19+
2100 | constexpr auto is( X const& x ) -> bool
2020
| ^
2121
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
22-
2137 | // Value case
22+
2137 |
2323
| ^
2424
mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
2525
mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid
2626
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
27-
2100 | //
27+
2100 | constexpr auto is( X const& x ) -> bool
2828
| ^
2929
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
30-
2137 | // Value case
30+
2137 |
3131
| ^
3232
mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
3333
mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid
3434
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
35-
2100 | //
35+
2100 | constexpr auto is( X const& x ) -> bool
3636
| ^
3737
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
38-
2137 | // Value case
38+
2137 |
3939
| ^
4040
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
4141
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid

regression-tests/test-results/gcc-13-c++2b/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)

regression-tests/test-results/gcc-14-c++2b/mixed-bugfix-for-ufcs-non-local.cpp.output

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
In file included from mixed-bugfix-for-ufcs-non-local.cpp:6:
22
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
3-
2100 | //-------------------------------------------------------------------------------------------------------------
3+
2100 | constexpr auto is( X const& x ) -> bool
44
| ^
55
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
66
2137 |
77
| ^
88
mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
99
mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid
1010
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
11-
2100 | //-------------------------------------------------------------------------------------------------------------
11+
2100 | constexpr auto is( X const& x ) -> bool
1212
| ^
1313
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
1414
2137 |
1515
| ^
1616
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
1717
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
1818
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
19-
2100 | //-------------------------------------------------------------------------------------------------------------
19+
2100 | constexpr auto is( X const& x ) -> bool
2020
| ^
2121
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2222
2137 |
2323
| ^
2424
mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
2525
mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid
2626
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
27-
2100 | //-------------------------------------------------------------------------------------------------------------
27+
2100 | constexpr auto is( X const& x ) -> bool
2828
| ^
2929
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
3030
2137 |
3131
| ^
3232
mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
3333
mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid
3434
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
35-
2100 | //-------------------------------------------------------------------------------------------------------------
35+
2100 | constexpr auto is( X const& x ) -> bool
3636
| ^
3737
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
3838
2137 |

regression-tests/test-results/msvc-2022-c++20/pure2-assert-expected-not-null.cpp.output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' b
66
pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' before '}'
77
pure2-assert-expected-not-null.cpp2(9): error C2065: 'ex': undeclared identifier
88
pure2-assert-expected-not-null.cpp2(9): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
9-
D:\a\cppfront\cppfront\include\cpp2util.h(828): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
9+
D:\a\cppfront\cppfront\include\cpp2util.h(855): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
1010
pure2-assert-expected-not-null.cpp2(14): error C2039: 'expected': is not a member of 'std'
1111
predefined C++ types (compiler internal)(347): note: see declaration of 'std'
1212
pure2-assert-expected-not-null.cpp2(14): error C2062: type 'int' unexpected
@@ -19,4 +19,4 @@ pure2-assert-expected-not-null.cpp2(14): note: while trying to match the argumen
1919
pure2-assert-expected-not-null.cpp2(14): error C2143: syntax error: missing ';' before '}'
2020
pure2-assert-expected-not-null.cpp2(15): error C2065: 'ex': undeclared identifier
2121
pure2-assert-expected-not-null.cpp2(15): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
22-
D:\a\cppfront\cppfront\include\cpp2util.h(828): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
22+
D:\a\cppfront\cppfront\include\cpp2util.h(855): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'

regression-tests/test-results/msvc-2022-c++20/pure2-enum.cpp.execution

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
x.to_string() is clubs
22
x2.to_string() is clubs
3+
x3.to_string() is hearts
4+
x3.to_code() is skat_game::hearts
5+
x4.to_string() is hearts
36
with if else: clubs
47
with inspect: clubs
58

@@ -27,3 +30,7 @@ f is (f2) is false
2730
f2 is (f ) is false
2831
(f & f2) == f2 is true
2932
inspecting f: includes all f2's flags ('cached' and 'current')
33+
f_from_string is (cached, current, cached_and_current)
34+
f_from_string is (current, obsolete)
35+
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
36+
f_from_string is (cached, obsolete)

regression-tests/test-results/msvc-2022-c++latest/pure2-regex_10_escapes.cpp.execution

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ bar result_expr: $1-$2 expected_results foo-
2626
bar result_expr: $1-$2 expected_results
2727

2828

29+
30+
bar result_expr: $1-$2 expected_results foo-
31+
13_y: OK regex: (\v+)(\V) parsed_regex: (\v+)(\V) str: foo
32+
33+
34+
bar result_expr: $1-$2 expected_results
35+
36+
37+
-b
38+
14_y: OK regex: foo(\v)bar parsed_regex: foo(\v)bar str: foo
39+
bar result_expr: $1 expected_results
40+
15_y: OK regex: (\V)(\v) parsed_regex: (\V)(\v) str: foo
41+
bar result_expr: $1-$2 expected_results o-
42+
16_y: OK regex: (\v)(\V) parsed_regex: (\v)(\V) str: foo
43+
bar result_expr: $1-$2 expected_results
2944
-b
3045
14_y: OK regex: foo(\v)bar parsed_regex: foo(\v)bar str: foo
3146
bar result_expr: $1 expected_results

0 commit comments

Comments
 (0)