Debian Codegraph @

clang/test/CodeGenCXX/cxx20-module-part-1c.cpp

raw
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
8 void Wrap() {
9 // CHECK: call void @_ZW3Foo4Frobv()
10 Frob();
11 // CHECK: call void @_ZW3Foo4Quuxv()
12 Quux();
13 }