Skip to content

Commit

Permalink
Updates for regression tests.
Browse files Browse the repository at this point in the history
MaxSagebaum committed Jul 9, 2024
1 parent ca6774d commit 2eaac0b
Showing 2 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +0,0 @@
pure2-assert-expected-not-null.cpp2:7:22: error: expected '(' for function-style cast or type construction
7 | std::expected<int,bool> ex {4};
| ~~~^
pure2-assert-expected-not-null.cpp2:7:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
7 | std::expected<int,bool> ex {4};
| ~~~~~^~~~~~~~
| unexpected
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
| ^
pure2-assert-expected-not-null.cpp2:9:193: error: use of undeclared identifier 'ex'
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));
| ^
pure2-assert-expected-not-null.cpp2:14:22: error: expected '(' for function-style cast or type construction
14 | std::expected<int,bool> ex {std::unexpected(false)};
| ~~~^
pure2-assert-expected-not-null.cpp2:14:10: error: no member named 'expected' in namespace 'std'; did you mean 'unexpected'?
14 | std::expected<int,bool> ex {std::unexpected(false)};
| ~~~~~^~~~~~~~
| unexpected
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/exception:110:8: note: 'unexpected' declared here
110 | void unexpected() __attribute__ ((__noreturn__,__cold__));
| ^
pure2-assert-expected-not-null.cpp2:15:52: error: use of undeclared identifier 'ex'
15 | return *cpp2::impl::assert_not_null(cpp2::move(ex));
| ^
6 errors generated.
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' b
pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' before '}'
pure2-assert-expected-not-null.cpp2(9): error C2065: 'ex': undeclared identifier
pure2-assert-expected-not-null.cpp2(9): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
pure2-assert-expected-not-null.cpp2(14): error C2039: 'expected': is not a member of 'std'
predefined C++ types (compiler internal)(347): note: see declaration of 'std'
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
pure2-assert-expected-not-null.cpp2(14): error C2143: syntax error: missing ';' before '}'
pure2-assert-expected-not-null.cpp2(15): error C2065: 'ex': undeclared identifier
pure2-assert-expected-not-null.cpp2(15): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'
D:\cppfront\cppfront\include\cpp2util.h(643): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&)'

0 comments on commit 2eaac0b

Please sign in to comment.