14 lines · cpp
1// RUN: %clang_cc1 -std=c++20 %S/cxx20-module-part-1a.cpp -triple %itanium_abi_triple -emit-module-interface -o %t-inter2// RUN: %clang_cc1 -std=c++20 %S/cxx20-module-part-1b.cpp -triple %itanium_abi_triple -emit-module-interface -o %t-impl3// RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -fmodule-file=Foo:inter=%t-inter -fmodule-file=Foo:impl=%t-impl -emit-llvm -o - | FileCheck %s4export module Foo;5export import :inter;6import :impl;7 8void Wrap() {9 // CHECK: call void @_ZW3Foo4Frobv()10 Frob();11 // CHECK: call void @_ZW3Foo4Quuxv()12 Quux();13}14