Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx20-module-std-subst-2c.cpp
blob36e2e67e5c29ad014e7c1880a077509286b84a9b
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;
12 // Use Ss as this is global-module std::char_traits
13 // CHECK-DAG: void @_ZW3Bar1gRSs(
14 void g(str<char, std::char_traits<char>> &s) {