2023-07-28 17:44:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2023-08-19 08:57:58 +02:00
|
|
|
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
|
2024-01-18 14:43:12 -08:00
|
|
|
// UNSUPPORTED: clang-modules-build
|
2024-01-21 12:02:39 +01:00
|
|
|
// UNSUPPORTED: gcc
|
|
|
|
|
|
|
|
|
|
// XFAIL: has-no-cxx-module-support
|
2024-01-17 08:11:25 +01:00
|
|
|
|
2023-07-28 17:44:06 +02:00
|
|
|
// A minimal test to validate import works.
|
|
|
|
|
|
2024-01-21 12:02:39 +01:00
|
|
|
// MODULE_DEPENDENCIES: std
|
|
|
|
|
|
2023-07-28 17:44:06 +02:00
|
|
|
import std;
|
|
|
|
|
|
|
|
|
|
int main(int, char**) {
|
|
|
|
|
std::println("Hello modular world");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|