Skip to content

Commit 7157f33

Browse files
[libc++] Disable a std::unexpected test in modules build (#144466)
This patch disables unexpected_disabled_cpp17.verify.cpp under clang modules builds because it changes diagnostics criteria post #143423, causing the test to fail. This patch follows a similar style to 853059a. This was found when working on trying to land #144033.
1 parent 6ddb3a6 commit 7157f33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.verify.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
// UNSUPPORTED: c++03, c++11, c++14
1010

11+
// When built with modules, this test gives diagnostics like declaration of
12+
// 'unexpected' must be imported from module 'std.expected.unexpected' before
13+
// it is required. Therefore disable it in this configuration.
14+
// UNSUPPORTED: clang-modules-build
15+
1116
// test unexpected
1217

1318
#include <exception>

0 commit comments

Comments
 (0)