You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,6 @@ void test() {
82
82
std::expected<int, MoveOnly> e;
83
83
[[maybe_unused]] auto val = std::move(e).value();
84
84
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
85
-
// expected-error@*:* 0-1{{call to deleted constructor of 'MoveOnly'}}
86
85
}
87
86
88
87
// is_copy_constructible_v<E> is true and is_constructible_v<E, decltype(std::move(error()))> is true.
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
99
-
// expected-error@*:* 0-1{{call to deleted constructor of 'CopyConstructibleButNotMoveConstructible'}}
100
98
}
101
99
}
102
100
@@ -126,8 +124,8 @@ void test() {
126
124
#if _LIBCPP_HAS_EXCEPTIONS
127
125
// expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
128
126
// expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
129
-
// expected-error-re@*:* 0-1{{call to deleted constructor of{{.*}}}}
130
-
// expected-error-re@*:* 0-1{{call to deleted constructor of{{.*}}}}
127
+
// expected-error-re@*:* 1-2{{call to deleted constructor of{{.*}}}}
128
+
// expected-error-re@*:* 1-2{{call to deleted constructor of{{.*}}}}
0 commit comments