Skip to content

Commit

Permalink
Update test data (hsutter#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarzec authored Jan 11, 2024
1 parent 1bbcd04 commit 4952e0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
100
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pure2-type-and-namespace-aliases.cpp2:18:29: error: expected '(' for function-st
pure2-type-and-namespace-aliases.cpp2:18:31: error: use of undeclared identifier 'v'
N1::pmr_vec<myclass::str> v {"xyzzy", "plugh"};
^
pure2-type-and-namespace-aliases.cpp2:20:28: error: use of undeclared identifier 'v'
auto const& v2 = std::move(v);
^
pure2-type-and-namespace-aliases.cpp2:20:26: error: use of undeclared identifier 'v'
auto const& v2{std::move(v)};
^
7 errors generated.
6 changes: 3 additions & 3 deletions regression-tests/test-results/gcc-10/pure2-print.cpp.output
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ In file included from pure2-print.cpp:7:
../../../include/cpp2util.h:10005:47: error: static assertion failed: GCC 11 or higher is required to support variables and type-scope functions that have a 'requires' clause. This includes a type-scope 'forward' parameter of non-wildcard type, such as 'func: (this, forward s: std::string)', which relies on being able to add a 'requires' clause - in that case, use 'forward s: _' instead if you need the result to compile with GCC 10.
pure2-print.cpp2:68:1: note: in expansion of macro ‘CPP2_REQUIRES_’
../../../include/cpp2util.h:10005:33: error: expected initializer before ‘static_assert’
pure2-print.cpp2:96:1: note: in expansion of macro ‘CPP2_REQUIRES_’
pure2-print.cpp2:97:1: note: in expansion of macro ‘CPP2_REQUIRES_’
pure2-print.cpp2:9:41: error: ‘constexpr const T outer::object_alias’ is not a static data member of ‘class outer’
pure2-print.cpp2:9:48: error: template definition of non-template ‘constexpr const T outer::object_alias’
pure2-print.cpp2:67:14: error: no declaration matches ‘void outer::mytype::variadic(const auto:91& ...) requires (is_convertible_v<typename std::remove_cv<typename std::remove_reference<decltype(outer::mytype::variadic::x)>::type>::type, int> && ...)’
pure2-print.cpp2:67:29: note: candidate is: ‘template<class ... auto:90> static void outer::mytype::variadic(const auto:90& ...)’
pure2-print.cpp2:10:19: note: ‘class outer::mytype’ defined here
pure2-print.cpp2:95:37: error: no declaration matches ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof ... (Args ...), 0)’
pure2-print.cpp2:95:37: note: no functions named ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof ... (Args ...), 0)’
pure2-print.cpp2:96:37: error: no declaration matches ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof ... (Args ...), 0)’
pure2-print.cpp2:96:37: note: no functions named ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof ... (Args ...), 0)’
pure2-print.cpp2:6:7: note: ‘class outer’ defined here

0 comments on commit 4952e0a

Please sign in to comment.