Skip to content

Commit 4c18d9f

Browse files
committed
Update testcase for recent cppfront developments.
1 parent eefa21d commit 4c18d9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

regression-tests/pure2-bugfix-for-nested-lists.cpp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ point: @value type = {
77
}
88
}
99

10-
check: (p: point) p;
10+
check: (copy p: point) -> point = p;
1111

1212
main: () = {
1313
assert(check((17, 29)).x == 17);

regression-tests/test-results/pure2-bugfix-for-nested-lists.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public: explicit point();
3030
#line 8 "pure2-bugfix-for-nested-lists.cpp2"
3131
};
3232

33-
[[nodiscard]] auto check(cpp2::impl::in<point> p) -> auto;
33+
[[nodiscard]] auto check(point p) -> point;
3434

3535
auto main() -> int;
3636

@@ -67,7 +67,7 @@ auto point::operator=(point&& that) noexcept -> point& {
6767
return *this;}
6868
point::point(){}
6969
#line 10 "pure2-bugfix-for-nested-lists.cpp2"
70-
[[nodiscard]] auto check(cpp2::impl::in<point> p) -> auto { return p; }
70+
[[nodiscard]] auto check(point p) -> point { return cpp2::move(p); }
7171

7272
#line 12 "pure2-bugfix-for-nested-lists.cpp2"
7373
auto main() -> int{
@@ -90,6 +90,6 @@ auto main() -> int{
9090
#line 29 "pure2-bugfix-for-nested-lists.cpp2"
9191
auto issue_1283() -> void{
9292
auto f {[]() -> void{}};
93-
static_cast<void>([_0 = (&f)]() mutable -> void { (*cpp2::impl::assert_not_null(_0))(); });
93+
static_cast<void>([_0 = (&f)]() mutable -> decltype(auto) { return (*cpp2::impl::assert_not_null(_0))(); });
9494
}
9595

0 commit comments

Comments
 (0)