xref: /llvm-project/clang/test/CodeGenCXX/cxx20-module-part-1c.cpp (revision ae4dce8659f313ca2034782583d31993212fa8bd)
1 // RUN: %clang_cc1 -std=c++20 %S/cxx20-module-part-1a.cpp -triple %itanium_abi_triple -emit-module-interface -o %t-inter
2 // RUN: %clang_cc1 -std=c++20 %S/cxx20-module-part-1b.cpp -triple %itanium_abi_triple -emit-module-interface -o %t-impl
3 // 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 %s
4 export module Foo;
5 export import :inter;
6 import :impl;
7 
Wrap()8 void Wrap() {
9   // CHECK: call void @_ZW3Foo4Frobv()
10   Frob();
11   // CHECK: call void @_ZW3Foo4Quuxv()
12   Quux();
13 }
14