From 2eaac0bd47c96550563c7d0cbdff7073d61af1db Mon Sep 17 00:00:00 2001 From: Max Sagebaum Date: Tue, 9 Jul 2024 10:44:19 +0200 Subject: [PATCH] Updates for regression tests. --- .../pure2-assert-expected-not-null.cpp.output | 27 ------------------- .../pure2-assert-expected-not-null.cpp.output | 4 +-- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/regression-tests/test-results/clang-18-c++23-libcpp/pure2-assert-expected-not-null.cpp.output b/regression-tests/test-results/clang-18-c++23-libcpp/pure2-assert-expected-not-null.cpp.output index ba14d38487..e69de29bb2 100644 --- a/regression-tests/test-results/clang-18-c++23-libcpp/pure2-assert-expected-not-null.cpp.output +++ b/regression-tests/test-results/clang-18-c++23-libcpp/pure2-assert-expected-not-null.cpp.output @@ -1,27 +0,0 @@ -pure2-assert-expected-not-null.cpp2:7:22: error: expected '(' for function-style cast or type construction - 7 | std::expected 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 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 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 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. diff --git a/regression-tests/test-results/msvc-2022-c++20/pure2-assert-expected-not-null.cpp.output b/regression-tests/test-results/msvc-2022-c++20/pure2-assert-expected-not-null.cpp.output index ccdd6c2961..34c1700be2 100644 --- a/regression-tests/test-results/msvc-2022-c++20/pure2-assert-expected-not-null.cpp.output +++ b/regression-tests/test-results/msvc-2022-c++20/pure2-assert-expected-not-null.cpp.output @@ -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 &&)'