Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx20-module-part-1c.cpp
blob4649df0e684a843d0498375461786a859f844902
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;
8 void Wrap() {
9 // CHECK: call void @_ZW3Foo4Frobv()
10 Frob();
11 // CHECK: call void @_ZW3Foo4Quuxv()
12 Quux();