diff options
| author | 2017-12-24 23:15:17 +0000 | |
|---|---|---|
| committer | 2017-12-24 23:15:17 +0000 | |
| commit | 34091ed6d5747c7d4acdc1ef6af75ce9b7a8adba (patch) | |
| tree | 53479f738fa2c63ce6cf95113985510e3653de23 /gnu/llvm/unittests/Support/FormatVariadicTest.cpp | |
| parent | Consolidate printf(3) calls at the end of main(). (diff) | |
| download | wireguard-openbsd-34091ed6d5747c7d4acdc1ef6af75ce9b7a8adba.tar.xz wireguard-openbsd-34091ed6d5747c7d4acdc1ef6af75ce9b7a8adba.zip | |
Import LLVM 5.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/unittests/Support/FormatVariadicTest.cpp')
| -rw-r--r-- | gnu/llvm/unittests/Support/FormatVariadicTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/llvm/unittests/Support/FormatVariadicTest.cpp b/gnu/llvm/unittests/Support/FormatVariadicTest.cpp index 5387a8ae499..bfbe556b31a 100644 --- a/gnu/llvm/unittests/Support/FormatVariadicTest.cpp +++ b/gnu/llvm/unittests/Support/FormatVariadicTest.cpp @@ -553,6 +553,12 @@ TEST(FormatVariadicTest, Adapter) { formatv("{0,=34:X-}", fmt_repeat(fmt_pad(N, 1, 3), 5)).str()); } +TEST(FormatVariadicTest, MoveConstructor) { + auto fmt = formatv("{0} {1}", 1, 2); + auto fmt2 = std::move(fmt); + std::string S = fmt2; + EXPECT_EQ("1 2", S); +} TEST(FormatVariadicTest, ImplicitConversions) { std::string S = formatv("{0} {1}", 1, 2); EXPECT_EQ("1 2", S); |
