aboutsummaryrefslogtreecommitdiffstats
path: root/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-07-13 19:25:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-07-13 19:25:57 +0000
commit289ae9e3ac13cefd468cfb852e8b9f52e984de08 (patch)
treebdee1fefb7c19e3c949b2eadeecc371c8fbce48b /test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
parent9d043122e0fc90510de06d43da8eda827464c1da (diff)
downloadsrc-vendor/libc++/libc++-trunk-r307894.tar.gz
src-vendor/libc++/libc++-trunk-r307894.zip
Vendor import of libc++ trunk r307894:vendor/libc++/libc++-trunk-r307894
Diffstat (limited to 'test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp')
-rw-r--r--test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp b/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
index 55c2156300fb..e73f3747c435 100644
--- a/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
+++ b/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
@@ -55,10 +55,10 @@ constexpr bool constexpr_test(InitArgs&&... args)
void test_throwing_ctor() {
#ifndef TEST_HAS_NO_EXCEPTIONS
struct Z {
- Z() : count(0) {}
- Z(Z&& o) : count(o.count + 1)
- { if (count == 2) throw 6; }
- int count;
+ Z() : count(0) {}
+ Z(Z&& o) : count(o.count + 1)
+ { if (count == 2) throw 6; }
+ int count;
};
Z z;
optional<Z> rhs(std::move(z));