1 // https://github.com/llvm/llvm-project/issues/59780
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -triple %itanium_abi_triple -emit-module-interface -o %t/a.pcm
8 // RUN: %clang_cc1 -std=c++20 %t/use.cpp -fprebuilt-module-path=%t -S \
9 // RUN: -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %t/use.cpp
10 // RUN: %clang_cc1 -std=c++20 %t/a.pcm -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %t/a.cppm
15 export template<typename T>
21 export template<typename T>
34 int Y<int>::value = 0;
36 // CHECK-NOT: @_ZW1a1xIiE = {{.*}}external{{.*}}global
37 // CHECK-NOT: @_ZNW1a1YIiE5valueE = {{.*}}external{{.*}}global
42 return x<int> + Y<int>::value;
45 // CHECK: @_ZW1a1xIiE = {{.*}}external{{.*}}global
46 // CHECK: @_ZNW1a1YIiE5valueE = {{.*}}external{{.*}}global