Revert "Revert #76246 and #76083"
This reverts commit 5c150e7eeb.
Adds a small fix that should properly disable the tests on Windows.
Unfortunately the original poster has not provided feedback and the
original patch did not fail in the LLVM CI infrastructure.
Modules are known to fail on Windows due to non compliance of the
C library. Currently not having this patch prevents testing on other
platforms.
25 lines
678 B
C++
25 lines
678 B
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
|
|
|
|
// XFAIL: has-no-cxx-module-support
|
|
|
|
// A minimal test to validate import works.
|
|
|
|
// MODULE_DEPENDENCIES: std
|
|
|
|
import std;
|
|
|
|
int main(int, char**) {
|
|
std::println("Hello modular world");
|
|
return 0;
|
|
}
|