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
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,6 @@ void test() {
96
96
[[maybe_unused]] auto val = std::move(e).value();
97
97
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
98
98
// The following diagnostic is emmitted in expected.h:
99
-
// expected-error@*:* {{call to deleted constructor of 'CopyConstructibleButNotMoveConstructible'}}
100
99
}
101
100
}
102
101
@@ -121,15 +120,15 @@ void test() {
121
120
[[maybe_unused]] auto val = std::move(e).value();
122
121
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
123
122
// The following diagnostic is emmitted in expected.h:
124
-
// expected-error@*:* {{call to deleted constructor of 'CopyConstructibleButNotMoveConstructible'}}
125
123
}
126
124
}
127
125
// These diagnostics happen when we try to construct bad_expected_access from the non copy-constructible error type.
128
126
#if _LIBCPP_HAS_EXCEPTIONS
129
127
// expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
130
128
// expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
131
-
// expected-error-re@*:* 1-2{{call to deleted constructor of{{.*}}}}
132
-
// expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
133
129
#endif
130
+
// These diagnostics can also additionally be produced by static_assert (see GH150601).
131
+
// expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
132
+
// expected-error-re@*:* 0-2{{call to deleted constructor of{{.*}}}}
0 commit comments