1// REQUIRES: !system-windows 2// 3// RUN: rm -rf %t 4// RUN: mkdir -p %t 5// RUN: split-file %s %t 6// 7// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Empty.cppm \ 8// RUN: -emit-module-interface -o %t/Empty.pcm 9// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Empty2.cppm \ 10// RUN: -fprebuilt-module-path=%t -emit-module-interface -o %t/Empty2.pcm 11// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/main.cpp \ 12// RUN: -fprebuilt-module-path=%t -emit-llvm -o - | FileCheck %t/main.cpp 13// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Empty2.pcm \ 14// RUN: -fprebuilt-module-path=%t -emit-llvm -o - | FileCheck %t/Empty2.cppm 15 16//--- Empty.cppm 17export module Empty; 18 19//--- Empty2.cppm 20export module Empty2; 21import Empty; 22 23// CHECK-NOT: _ZGIW5Empty 24 25//--- main.cpp 26import Empty; 27import Empty2; 28 29// CHECK-NOT: _ZGIW5Empty 30// CHECK-NOT: _ZGIW6Empty2 31