diff options
Diffstat (limited to 'llvm/unittests/Support/FormatVariadicTest.cpp')
-rw-r--r-- | llvm/unittests/Support/FormatVariadicTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/Support/FormatVariadicTest.cpp b/llvm/unittests/Support/FormatVariadicTest.cpp index a6ce37e014f..ddecffdeed1 100644 --- a/llvm/unittests/Support/FormatVariadicTest.cpp +++ b/llvm/unittests/Support/FormatVariadicTest.cpp @@ -593,11 +593,13 @@ struct Recorder { : Copied(Move.Copied), Moved(1 + Move.Moved) {} }; } // namespace -template <> struct llvm::format_provider<Recorder> { +namespace llvm { +template <> struct format_provider<Recorder> { static void format(const Recorder &R, raw_ostream &OS, StringRef style) { OS << R.Copied << "C " << R.Moved << "M"; } }; +} // namespace TEST(FormatVariadicTest, CopiesAndMoves) { Recorder R; |