Debian Codegraph @

gcc/testsuite/g++.dg/modules/std-subst-4_b.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 export module Foo;
4 // { dg-module-cmi Foo }
5 import RenameString;
6
7 namespace std {
8 template <typename T> struct char_traits {};
9 } // namespace std
10
11 // use Sb mangling, not Ss as this is not global-module std::char_traits.
12 // { dg-final { scan-assembler {_ZW3Foo1fRSbIcStS_11char_traitsIcESaIcEE:} } }
13 void f(str<char, std::char_traits<char>> &s) {
14 }