
These tests aren't actually libc++-specific for the most part. They test the testsuite, so they aren't tied to any implementation. That means anybody using the testsuite should be able to run these tests successfully. The most notable changes are that - `test/libcxx/selftest/modules` moved to `test/libcxx/modules`, since the assumptions these tests check are libc++-specific - there is a new `lit.local.cfg` for `test/selftest` - `selftest/dsl/dsl.sh.py` was modified since the path to the monorepo root changed
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
|
|
// UNSUPPORTED: clang-modules-build
|
|
// UNSUPPORTED: gcc
|
|
|
|
// TODO: This test is currently written in a way that is specific to libc++, but it's really trying to test a property
|
|
// of the test framework, which isn't libc++ specific.
|
|
// REQUIRES: stdlib=libc++
|
|
|
|
// XFAIL: has-no-cxx-module-support
|
|
|
|
// Make sure that the compile flags contain the expected elements.
|
|
// The tests only look for the expected components and not the exact flags.
|
|
// Otherwise changing the location of the module would break this test.
|
|
|
|
// MODULE_DEPENDENCIES: std.compat
|
|
|
|
// RUN: echo "%{compile_flags}" | grep -- "-fmodule-file=std.compat=.*/std.compat.pcm .*/std.compat.pcm"
|
|
|
|
// It's unspecified whether std.compat is built on the std module.
|
|
// Therefore don't test its presence
|