1 // Address: https://github.com/llvm/llvm-project/issues/60693
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/a.cppm -emit-module-interface -o %t/a.pcm
8 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -fmodule-file=a=%t/a.pcm %t/c.cpp -S -emit-llvm -disable-llvm-passes -o - | FileCheck %t/c.cpp
14 for (unsigned n = 0; n != 10; ++n) {
26 export template<typename T>
28 static constexpr auto a = f();
29 static constexpr auto b = f();
30 static constexpr auto c = f();
31 static constexpr auto d = f();
43 template struct s<int>;
44 template struct s<long>;
49 extern "C" int use() {
51 return _.a + _.b + _.c + _.d;
54 extern "C" long use2() {
59 extern "C" long use3() {
64 // CHECK: define{{.*}}@use(
68 // CHECK: declare{{.*}}@_ZNW1a1sIlE3fooEv
69 // CHECK-NOT: _ZNW1a1sIlE3barEv
70 // CHECK: declare{{.*}}_ZNW1a1sIlE3zooEv