diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-02 12:46:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-02 12:46:23 +0000 |
commit | edad5bcb76bf472a1487c0f3dd94a5914213a647 (patch) | |
tree | 63c3f98843d0debbfd390005cf8e05250cd3fe28 /unittests/Support/FormatVariadicTest.cpp | |
parent | 0bc1bd0d3931803dc6a26d35758f93527359bcdb (diff) |
Notes
Diffstat (limited to 'unittests/Support/FormatVariadicTest.cpp')
-rw-r--r-- | unittests/Support/FormatVariadicTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/Support/FormatVariadicTest.cpp b/unittests/Support/FormatVariadicTest.cpp index 5387a8ae499c9..bfbe556b31a7e 100644 --- a/unittests/Support/FormatVariadicTest.cpp +++ b/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); |