Skip to content

Commit e8a1c21

Browse files
committed
Fix module builds (hopefully)
1 parent ff1b9f3 commit e8a1c21

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libcxx/test/libcxx/utilities/expected/expected.expected/value.observers.verify.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ void test() {
9696
[[maybe_unused]] auto val = std::move(e).value();
9797
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
9898
// The following diagnostic is emmitted in expected.h:
99-
// expected-error@*:* {{call to deleted constructor of 'CopyConstructibleButNotMoveConstructible'}}
10099
}
101100
}
102101

@@ -121,15 +120,15 @@ void test() {
121120
[[maybe_unused]] auto val = std::move(e).value();
122121
// expected-error-re@*:* {{static assertion failed {{.*}}error_type has to be both copy constructible and constructible from decltype(std::move(error()))}}
123122
// The following diagnostic is emmitted in expected.h:
124-
// expected-error@*:* {{call to deleted constructor of 'CopyConstructibleButNotMoveConstructible'}}
125123
}
126124
}
127125
// These diagnostics happen when we try to construct bad_expected_access from the non copy-constructible error type.
128126
#if _LIBCPP_HAS_EXCEPTIONS
129127
// expected-error-re@*:* {{call to deleted constructor of{{.*}}}}
130128
// 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{{.*}}}}
133129
#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{{.*}}}}
134133
}
135134
// clang-format on

0 commit comments

Comments
 (0)