xref: /llvm-project/clang/test/CodeGenCXX/cxx20-module-std-subst-2c.cpp (revision ae4dce8659f313ca2034782583d31993212fa8bd)
1 // RUN: %clang_cc1 -std=c++20 %S/Inputs/cxx20-module-std-subst-2a.cpp -triple %itanium_abi_triple -emit-module-interface -o %t
2 // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -fmodule-file=%t -emit-llvm -o - | FileCheck %s
3 module;
4 # 5 __FILE__ 1
5 namespace std {
6 template <typename A> struct char_traits {};
7 } // namespace std
8 # 9 "" 2
9 export module Bar;
10 import RenameString;
11 
12 // Use Ss as this is global-module std::char_traits
13 // CHECK-DAG: void @_ZW3Bar1gRSs(
g(str<char,std::char_traits<char>> & s)14 void g(str<char, std::char_traits<char>> &s) {
15 }
16