Skip to content

Commit f199674

Browse files
committed
test: exercise updated pretty print
1 parent 79a4723 commit f199674

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

regression-tests/pure2-print.cpp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ testing_enabled: bool = false;
55

66
outer: @print type = {
77

8-
object_alias: <T> T requires true == 42;
8+
object_alias: <T> T requires true == sizeof(type T::value_type);
99

1010
mytype: final type =
1111
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ bool testing_enabled {false};
8989

9090
#line 8 "pure2-print.cpp2"
9191
template<typename T>
92-
requires (true) inline CPP2_CONSTEXPR T outer::object_alias = 42;
92+
requires (true) inline CPP2_CONSTEXPR T outer::object_alias = sizeof(typename T::value_type);
9393
#line 9 "pure2-print.cpp2"
9494

9595
#line 12 "pure2-print.cpp2"

regression-tests/test-results/pure2-print.cpp2.output

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pure2-print.cpp2...
22

33
outer:/* @print */ type =
44
{
5-
object_alias: <T: type> T requires (true) == 42;
5+
object_alias: <T: type> T requires (true) == sizeof(type T::value_type);
66
mytype: final type =
77
{
88
protected f:() -> move int = 42;

0 commit comments

Comments
 (0)