Skip to content

Commit c147335

Browse files
committed
test: regenerate regression tests
1 parent e1b1d1e commit c147335

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
pure2-bugfix-for-non-local-function-expression.cpp2:9:7: warning: ‘t’ has a base ‘t::<lambda()>’ which has no linkage [-Wsubobject-linkage]
2+
9 | t: @struct type = {
3+
| ^

regression-tests/test-results/pure2-print.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class outer {
2222
public: template<typename T>
2323
CPP2_REQUIRES_ (true)
2424
#line 6 "pure2-print.cpp2"
25-
static const T object_alias;
25+
static constexpr T object_alias = 42;
2626

2727
public: class mytype final
2828
{
@@ -87,12 +87,6 @@ auto main() -> int;
8787
//=== Cpp2 function definitions =================================================
8888

8989

90-
#line 6 "pure2-print.cpp2"
91-
template<typename T>
92-
requires (true)
93-
#line 6 "pure2-print.cpp2"
94-
inline CPP2_CONSTEXPR T outer::object_alias = 42;
95-
9690
#line 10 "pure2-print.cpp2"
9791
[[nodiscard]] auto outer::mytype::f() -> int { return 42; }
9892

regression-tests/test-results/pure2-type-and-namespace-aliases.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ auto main() -> int{
110110
}
111111

112112
#line 39 "pure2-type-and-namespace-aliases.cpp2"
113-
inline constexpr myclass3 myclass3::v2 = myclass3{};
113+
inline CPP2_CONSTEXPR myclass3 myclass3::v2 = myclass3{};
114114

115115

0 commit comments

Comments
 (0)