[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / cxx20-module-std-subst-2b.cpp
blob04711970edda216b12ad04e592610a9852b65d4e
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
4 export module Foo;
5 import RenameString;
7 namespace std {
8 template <typename T> struct char_traits {};
9 } // namespace std
11 // use Sb mangling, not Ss as this is not global-module std::char_traits
12 // std::char_traits.
13 // CHECK-DAG: void @_ZW3Foo1fRSbIcStS_11char_traitsIcESaIcEE(
14 void f(str<char, std::char_traits<char>> &s) {