| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20 |
| 10 | // UNSUPPORTED: clang-modules-build |
| 11 | // UNSUPPORTED: gcc |
| 12 | |
| 13 | // TODO: This test is currently written in a way that is specific to libc++, but it's really trying to test a property |
| 14 | // of the test framework, which isn't libc++ specific. |
| 15 | // REQUIRES: stdlib=libc++ |
| 16 | |
| 17 | // XFAIL: has-no-cxx-module-support |
| 18 | |
| 19 | // Make sure that the compile flags contain the expected elements. |
| 20 | // The tests only look for the expected components and not the exact flags. |
| 21 | // Otherwise changing the location of the module would break this test. |
| 22 | |
| 23 | // MODULE_DEPENDENCIES: std.compat |
| 24 | |
| 25 | // RUN: echo "%{compile_flags}" | grep -- "-fmodule-file=std.compat=.*/std.compat.pcm .*/std.compat.pcm" |
| 26 | |
| 27 | // It's unspecified whether std.compat is built on the std module. |
| 28 | // Therefore don't test its presence |
| 29 | |