1 // Although the reduced BMI are not designed to be generated,
2 // it is helpful for testing whether we've reduced the definitions.
6 // RUN: split-file %s %t
8 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/a.cppm \
9 // RUN: -emit-reduced-module-interface -o %t/a.pcm
10 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/b.cpp \
11 // RUN: -fmodule-file=a=%t/a.pcm -emit-llvm -o - \
12 // RUN: | FileCheck %t/b.cpp
17 export template <class T>
25 // Instantiate `A<int>::member()`.
26 export int a_member = A<int>().member();
28 export const int a = 43;
33 static_assert(a == 43);
40 // CHECK: define{{.*}}@_ZNW1a1AIiE6memberEv