[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 853059a15011fd8b57dd0.
This was found when working on trying to land #144033.
This commit is contained in:
Aiden Grossman 2025-06-20 09:58:59 -07:00 committed by GitHub
parent 6ddb3a69c1
commit 7157f33c6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,11 @@
// UNSUPPORTED: c++03, c++11, c++14
// When built with modules, this test gives diagnostics like declaration of
// 'unexpected' must be imported from module 'std.expected.unexpected' before
// it is required. Therefore disable it in this configuration.
// UNSUPPORTED: clang-modules-build
// test unexpected
#include <exception>