Skip to content

Commit e7046c7

Browse files
bluetarpmediaNeil Henderson
and
Neil Henderson
authored
Update regression tests after recent changes (#1188)
Co-authored-by: Neil Henderson <[email protected]>
1 parent 63d02e8 commit e7046c7

17 files changed

+123
-20
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(883) 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(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]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(744) : Bounds safety violation
1+
../../../include/cpp2util.h(749) : Bounds safety violation
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(744) : Contract violation: fill: value must contain at least count elements
1+
../../../include/cpp2util.h(749) : 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(823) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
2+
from source location: ../../../include/cpp2util.h(828) 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(823) 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(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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(823) 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(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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(823) 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(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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mixed-bounds-safety-with-assert.cpp2(11) void print_subrange(const auto:261&, cpp2::impl::in<int>, cpp2::impl::in<int>) [with auto:261 = std::vector<int>; cpp2::impl::in<int> = const int]: Bounds safety violation
1+
mixed-bounds-safety-with-assert.cpp2(11) void print_subrange(const auto:263&, cpp2::impl::in<int>, cpp2::impl::in<int>) [with auto:263 = std::vector<int>; cpp2::impl::in<int> = const int]: Bounds safety violation
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 | class finally_success
3+
2100 | constexpr auto is( std::optional<U> const& x ) -> bool
44
| ^
55
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
6-
2137 | finally(finally&& that) noexcept
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 | class finally_success
11+
2100 | constexpr auto is( std::optional<U> const& x ) -> bool
1212
| ^
1313
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
14-
2137 | finally(finally&& that) noexcept
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 | class finally_success
19+
2100 | constexpr auto is( std::optional<U> const& x ) -> bool
2020
| ^
2121
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
22-
2137 | finally(finally&& that) noexcept
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 | class finally_success
27+
2100 | constexpr auto is( std::optional<U> const& x ) -> bool
2828
| ^
2929
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
30-
2137 | finally(finally&& that) noexcept
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 | class finally_success
35+
2100 | constexpr auto is( std::optional<U> const& x ) -> bool
3636
| ^
3737
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
38-
2137 | finally(finally&& that) noexcept
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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44

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(823): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
9+
D:\a\cppfront\cppfront\include\cpp2util.h(828): 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(823): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
22+
D:\a\cppfront\cppfront\include\cpp2util.h(828): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hello world!
2+
hello world!
3+
Come in, Frodo
4+
Come in, Sam
5+
Come in awhile, but take some biscuits on your way out, Frodo!
6+
Come in awhile, but take some biscuits on your way out, Sam!
7+
fg_out initialized gandalf to: A Powerful Mage
8+
pg_out initialized galadriel to: A Powerful Mage
9+
I hear you've moving, Frodo?
10+
I hear you've moving, Sam?
11+
Inout Gandalf ... fh_forward returned: Gandalf
12+
Inout Galadriel ... ph_forward returned: Galadriel
13+
Inout Galadriel ... ph_forward2 returned: Galadriel
14+
In Gandalf ... fh_out returned: yohoho
15+
In Galadriel ... ph_out returned: yohoho
16+
43
17+
44
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pure2-function-typeids.cpp

0 commit comments

Comments
 (0)