Skip to content

Commit 1032a5b

Browse files
authored
CI Update tests - make all tests pass (#1324)
* CI Update regression tests * CI Include UFCS test compilation failures * CI Revert UFCS test restore for further investigation * CI update mixed-bugfix-for-ufcs-non-local.cpp2 results
1 parent ebfb7bc commit 1032a5b

File tree

55 files changed

+87
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+87
-99
lines changed

regression-tests/mixed-bugfix-for-ufcs-non-local.cpp2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ d: _ == t<o.f()>(); // Fails on Clang 12 (lambda in unevaluated context).
3838

3939
u: @struct type = {
4040
b: bool == o.f();
41-
c: bool == :(forward x: decltype(o.f())) = x;(true); // Fails on Clang 12 (lambda in unevaluated context).
41+
// UFCS used in the decltype in the line below causes all compilers to report error/crash
42+
c: bool == :(forward x: decltype(f(o))) = x;(true); // Fails on Clang 12 (lambda in unevaluated context).
4243
g: (s, sz) pre(s.sz() != 0) = { }
4344
}
4445

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
123
2+
0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hi ho hum
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12145505332166550543

regression-tests/test-results/apple-clang-14-c++2b/pure2-last-use.cpp.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pure2-last-use.cpp2:344:16: error: no template named 'move_only_function' in nam
1313
pure2-last-use.cpp2:348:161: error: no member named 'move_only_function' in namespace 'std'
1414
CPP2_REQUIRES_ (std::is_convertible_v<CPP2_TYPEOF(a_), std::add_const_t<std::unique_ptr<int>>&> && std::is_convertible_v<CPP2_TYPEOF(b_), std::add_const_t<std::move_only_function<int()>>&> && std::is_convertible_v<CPP2_TYPEOF(c_), std::add_const_t<std::add_lvalue_reference_t<int>>&>) ;
1515
~~~~~^
16-
../../../include/cpp2util.h:10008:43: note: expanded from macro 'CPP2_REQUIRES_'
16+
../../../include/cpp2util.h:10109:43: note: expanded from macro 'CPP2_REQUIRES_'
1717
#define CPP2_REQUIRES_(...) requires (__VA_ARGS__)
1818
^~~~~~~~~~~
1919
pure2-last-use.cpp2:348:188: error: expected expression
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(1108) 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(1156) 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(920) : Bounds safety violation
1+
../../../include/cpp2util.h(965) : Bounds safety violation
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(920) : Contract violation: fill: value must contain at least count elements
1+
../../../include/cpp2util.h(965) : 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(999) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
2+
from source location: ../../../include/cpp2util.h(1047) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
123
2+
0

0 commit comments

Comments
 (0)