brintos

brintos / llvm-project-archived public Read only

0
0
Text · 902 B · ad8b466 Raw
31 lines · plain
1// REQUIRES: !system-windows2//3// RUN: rm -rf %t4// RUN: mkdir -p %t5// RUN: split-file %s %t6//7// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Empty.cppm \8// RUN:     -emit-module-interface -o %t/Empty.pcm9// 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.pcm11// 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.cpp13// 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.cppm15 16//--- Empty.cppm17export module Empty;18 19//--- Empty2.cppm20export module Empty2;21import Empty;22 23// CHECK-NOT: _ZGIW5Empty24 25//--- main.cpp26import Empty;27import Empty2;28 29// CHECK-NOT: _ZGIW5Empty30// CHECK-NOT: _ZGIW6Empty231