xref: /llvm-project/clang/test/CodeGenCXX/cxx20-module-std-subst-2c.cpp (revision ae4dce8659f313ca2034782583d31993212fa8bd)
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 module;
4*ae4dce86SNathan Sidwell # 5 __FILE__ 1
5*ae4dce86SNathan Sidwell namespace std {
6*ae4dce86SNathan Sidwell template <typename A> struct char_traits {};
7*ae4dce86SNathan Sidwell } // namespace std
8*ae4dce86SNathan Sidwell # 9 "" 2
9*ae4dce86SNathan Sidwell export module Bar;
10*ae4dce86SNathan Sidwell import RenameString;
11*ae4dce86SNathan Sidwell 
12*ae4dce86SNathan Sidwell // Use Ss as this is global-module std::char_traits
13*ae4dce86SNathan Sidwell // CHECK-DAG: void @_ZW3Bar1gRSs(
g(str<char,std::char_traits<char>> & s)14*ae4dce86SNathan Sidwell void g(str<char, std::char_traits<char>> &s) {
15*ae4dce86SNathan Sidwell }
16