2 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/a.cppm \
6 // RUN: -emit-module-interface -o %t/a.pcm
7 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/m.cppm \
8 // RUN: -emit-module-interface -fmodule-file=a=%t/a.pcm -o %t/m.pcm
9 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/m.pcm \
10 // RUN: -fmodule-file=a=%t/a.pcm -emit-llvm -o - | FileCheck %t/m.cppm
12 // Test again with reduced BMI.
13 // Note that we can't use reduced BMI here for m.cppm since it is required
14 // to generate the backend code.
15 // RUN: rm %t/a.pcm %t/m.pcm
16 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/a.cppm \
17 // RUN: -emit-reduced-module-interface -o %t/a.pcm
18 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/m.cppm \
19 // RUN: -emit-module-interface -fmodule-file=a=%t/a.pcm -o %t/m.pcm
20 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/m.pcm \
21 // RUN: -fmodule-file=a=%t/a.pcm -emit-llvm -o - | FileCheck %t/m.cppm
28 export A __dynamic_inited_a;
36 // CHECK: define void @_ZGIW1m
37 // CHECK: store i8 1, ptr @_ZGIW1m__in_chrg
38 // CHECK: call{{.*}}@_ZGIW1a