llvm.org GIT mirror llvm / 2c4e91e
Fix FormatVariadicTest with GCC Looks like GCC didn't like the original specialization, try within namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316361 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Hahnfeld 1 year, 9 months ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
592592 : Copied(Move.Copied), Moved(1 + Move.Moved) {}
593593 };
594594 } // namespace
595 template <> struct llvm::format_provider {
595 namespace llvm {
596 template <> struct format_provider {
596597 static void format(const Recorder &R, raw_ostream &OS, StringRef style) {
597598 OS << R.Copied << "C " << R.Moved << "M";
598599 }
599600 };
601 } // namespace
600602
601603 TEST(FormatVariadicTest, CopiesAndMoves) {
602604 Recorder R;