1*ae4dce86SNathan Sidwell // RUN: %clang_cc1 -std=c++20 %S/Inputs/cxx20-module-std-subst-2a.cpp -triple %itanium_abi_triple -emit-module-interface -o %t 2*ae4dce86SNathan Sidwell // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -fmodule-file=%t -emit-llvm -o - | FileCheck %s 3*ae4dce86SNathan Sidwell 4*ae4dce86SNathan Sidwell export module Foo; 5*ae4dce86SNathan Sidwell import RenameString; 6*ae4dce86SNathan Sidwell 7*ae4dce86SNathan Sidwell namespace std { 8*ae4dce86SNathan Sidwell template <typename T> struct char_traits {}; 9*ae4dce86SNathan Sidwell } // namespace std 10*ae4dce86SNathan Sidwell 11*ae4dce86SNathan Sidwell // use Sb mangling, not Ss as this is not global-module std::char_traits 12*ae4dce86SNathan Sidwell // std::char_traits. 13*ae4dce86SNathan Sidwell // CHECK-DAG: void @_ZW3Foo1fRSbIcStS_11char_traitsIcESaIcEE( f(str<char,std::char_traits<char>> & s)14*ae4dce86SNathan Sidwellvoid f(str<char, std::char_traits<char>> &s) { 15*ae4dce86SNathan Sidwell } 16