Commit 905ba447 authored by Phil Willoughby's avatar Phil Willoughby Committed by Facebook Github Bot

Fix a logic error in StringKeyedTest

Summary: Make sure that the last use of `s6` is sequenced before it is moved-from.

Reviewed By: nbronson

Differential Revision: D4850480

fbshipit-source-id: 5272c14475ae2c62bc613cfd54f5df482b19d3dc
parent 3a7d377d
......@@ -355,7 +355,8 @@ TEST(StringKeyedUnorderedSetTest, constructors) {
EXPECT_TRUE(s3.empty());
EXPECT_TRUE(s6 == s5);
LeakCheckedUnorderedSet s7(std::move(s6), s6.get_allocator());
auto s6_allocator = s6.get_allocator();
LeakCheckedUnorderedSet s7(std::move(s6), s6_allocator);
EXPECT_TRUE(s6.empty());
EXPECT_TRUE(s7 == s5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment