Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Modules / search-partitions.cpp
blob571160def7e9b7bc2b3b4df358e2266c74f2b32d
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/partition1.cpp \
6 // RUN: -o %t/A-Part1.pcm
8 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/partition2.cpp \
9 // RUN: -o %t/A-Part2.pcm
11 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/partition3.cpp \
12 // RUN: -o %t/A-Part3.pcm
14 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/moduleA.cpp \
15 // RUN: -fprebuilt-module-path=%t
17 // expected-no-diagnostics
19 //--- partition1.cpp
20 export module A:Part1;
22 int part1();
24 //--- partition2.cpp
26 export module A:Part2;
28 int part2();
30 //--- partition3.cpp
32 export module A:Part3;
34 int part3();
36 //--- moduleA.cpp
38 export module A;
40 import :Part1;
41 export import :Part2;
42 import :Part3;
44 int foo();