Skip to content

Commit 2eaac0b

Browse files
committed
Updates for regression tests.
1 parent ca6774d commit 2eaac0b

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +0,0 @@
1-
pure2-assert-expected-not-null.cpp2:7:22: error: expected '(' for function-style cast or type construction
2-
7 | std::expected<int,bool> ex {4};
3-
| ~~~^
4-
pure2-assert-expected-not-null.cpp2:7:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
5-
7 | std::expected<int,bool> ex {4};
6-
| ~~~~~^~~~~~~~
7-
| unexpected
8-
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
9-
110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
10-
| ^
11-
pure2-assert-expected-not-null.cpp2:9:193: error: use of undeclared identifier 'ex'
12-
9 | return *cpp2::impl::assert_not_null(cpp2::move(up)) + *cpp2::impl::assert_not_null(cpp2::move(sp)) + *cpp2::impl::assert_not_null(cpp2::move(op)) + *cpp2::impl::assert_not_null(cpp2::move(ex));
13-
| ^
14-
pure2-assert-expected-not-null.cpp2:14:22: error: expected '(' for function-style cast or type construction
15-
14 | std::expected<int,bool> ex {std::unexpected(false)};
16-
| ~~~^
17-
pure2-assert-expected-not-null.cpp2:14:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
18-
14 | std::expected<int,bool> ex {std::unexpected(false)};
19-
| ~~~~~^~~~~~~~
20-
| unexpected
21-
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
22-
110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
23-
| ^
24-
pure2-assert-expected-not-null.cpp2:15:52: error: use of undeclared identifier 'ex'
25-
15 | return *cpp2::impl::assert_not_null(cpp2::move(ex));
26-
| ^
27-
6 errors generated.

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:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
9+
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
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:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
22+
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'

0 commit comments

Comments
 (0)