diff --git a/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.verify.cpp b/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.verify.cpp index 299cb123fbda3..b92f2baa02e47 100644 --- a/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.verify.cpp +++ b/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.verify.cpp @@ -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