Skip to content

Commit ebe9405

Browse files
committed
test: regenerate the new tests
1 parent ae91505 commit ebe9405

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

regression-tests/test-results/pure2-bugfix-for-deducible-parameters.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,44 @@
66

77
#include "cpp2util.h"
88

9+
#line 1 "pure2-bugfix-for-deducible-parameters.cpp2"
910

1011
#line 31 "pure2-bugfix-for-deducible-parameters.cpp2"
1112
template<typename T> class v;
1213

1314

1415
//=== Cpp2 type definitions and function declarations ===========================
1516

17+
#line 1 "pure2-bugfix-for-deducible-parameters.cpp2"
1618
// Dependent, non-deducible parameters
1719
// are wrapped like non-dependent parameters.
1820
#line 3 "pure2-bugfix-for-deducible-parameters.cpp2"
1921
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x) -> void;
20-
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x, [[maybe_unused]] T const& param2) -> void;
22+
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x, [[maybe_unused]] T const& unnamed_param_2) -> void;
2123
template<typename T> [[nodiscard]] auto id(cpp2::in<std::integral_constant<cpp2::i32,T::value>> x) -> auto&&;
2224
template<typename T> auto id(cpp2::in<std::integral_constant<cpp2::i32,T::value>> x, T const& y) -> void;
2325

2426
auto main() -> int;
25-
2627

2728
#line 31 "pure2-bugfix-for-deducible-parameters.cpp2"
2829
template<typename T> class v {
2930
public: explicit v(T const& x);
3031
#line 32 "pure2-bugfix-for-deducible-parameters.cpp2"
3132
public: auto operator=(T const& x) -> v& ;
32-
3333
public: v(v const&) = delete; /* No 'that' constructor, suppress copy */
3434
public: auto operator=(v const&) -> void = delete;
35+
3536
#line 33 "pure2-bugfix-for-deducible-parameters.cpp2"
3637
};
3738

3839

3940
//=== Cpp2 function definitions =================================================
4041

42+
#line 1 "pure2-bugfix-for-deducible-parameters.cpp2"
4143

4244
#line 3 "pure2-bugfix-for-deducible-parameters.cpp2"
4345
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x) -> void{x.construct(); }
44-
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x, [[maybe_unused]] T const& param2) -> void{x.construct(); }
46+
template<typename T> auto init(cpp2::out<std::integral_constant<cpp2::i32,T::value>> x, [[maybe_unused]] T const& unnamed_param_2) -> void{x.construct(); }
4547
template<typename T> [[nodiscard]] auto id(cpp2::in<std::integral_constant<cpp2::i32,T::value>> x) -> auto&& { return x; }
4648
template<typename T> auto id(cpp2::in<std::integral_constant<cpp2::i32,T::value>> x, T const& y) -> void{cpp2::Default.expects(&x == &y, ""); }
4749

@@ -81,7 +83,5 @@ auto f = []<typename T>(std::vector<std::vector<T>> const& x) -> void{};
8183
template <typename T> v<T>::v(T const& x){}
8284
#line 32 "pure2-bugfix-for-deducible-parameters.cpp2"
8385
template <typename T> auto v<T>::operator=(T const& x) -> v& {
84-
return *this;
85-
#line 32 "pure2-bugfix-for-deducible-parameters.cpp2"
86-
}
86+
return *this; }
8787

regression-tests/test-results/pure2-bugfix-for-dependent-types-recursion.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66

77
#include "cpp2util.h"
88

9+
#line 1 "pure2-bugfix-for-dependent-types-recursion.cpp2"
910

1011

1112
//=== Cpp2 type definitions and function declarations ===========================
1213

14+
#line 1 "pure2-bugfix-for-dependent-types-recursion.cpp2"
1315
auto main() -> int;
14-
1516

1617
//=== Cpp2 function definitions =================================================
1718

19+
#line 1 "pure2-bugfix-for-dependent-types-recursion.cpp2"
1820
auto main() -> int{
21+
#line 2 "pure2-bugfix-for-dependent-types-recursion.cpp2"
1922
using a = b;
2023
using b = a;
2124
static_cast<void>(a::t);

regression-tests/test-results/pure2-bugfix-for-dependent-types.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@
66

77
#include "cpp2util.h"
88

9+
#line 1 "pure2-bugfix-for-dependent-types.cpp2"
910

1011
#line 47 "pure2-bugfix-for-dependent-types.cpp2"
1112
template<typename T> class t;
1213

1314

1415
//=== Cpp2 type definitions and function declarations ===========================
1516

17+
#line 1 "pure2-bugfix-for-dependent-types.cpp2"
1618
template<typename T> using identity = T;
19+
#line 2 "pure2-bugfix-for-dependent-types.cpp2"
1720

1821
template<typename T, T::value_type V> [[nodiscard]] auto f(cpp2::in<typename T::value_type> x) -> T::value_type;
19-
2022

2123
#line 47 "pure2-bugfix-for-dependent-types.cpp2"
2224
template<typename T> class t {
23-
struct u_x_as_base { T::value_type x; };
25+
struct u_x_as_base { typename T::value_type x; };
2426

2527
#line 48 "pure2-bugfix-for-dependent-types.cpp2"
2628
public: class u: public u_x_as_base, public T::type {
@@ -31,10 +33,10 @@ struct u_x_as_base { T::value_type x; };
3133
};
3234

3335
auto main() -> int;
34-
3536

3637
//=== Cpp2 function definitions =================================================
3738

39+
#line 1 "pure2-bugfix-for-dependent-types.cpp2"
3840

3941
#line 3 "pure2-bugfix-for-dependent-types.cpp2"
4042
template<typename T, T::value_type V> [[nodiscard]] auto f(cpp2::in<typename T::value_type> x) -> T::value_type{
@@ -110,7 +112,7 @@ auto main() -> int{
110112
using alias = std::integral_constant<cpp2::i32,0>;
111113
static_cast<void>(alias::value_type{0});// Non-dependent.
112114
}
113-
static_cast<void>([]<typename T>([[maybe_unused]] T const& param1) -> void{
115+
static_cast<void>([]<typename T>([[maybe_unused]] T const& unnamed_param_1) -> void{
114116
using alias = std::integral_constant<T,0>;
115117
static_cast<void>(typename alias::value_type{0});// Dependent.
116118
{

0 commit comments

Comments
 (0)