Commit a3013cce authored by misterg's avatar misterg Committed by Gennadiy Civil
Browse files

Googletest export

Fix broken OSS build

PiperOrigin-RevId: 222244158
parent f7779eb3
...@@ -1139,9 +1139,9 @@ TEST(WithArgsTest, VoidAction) { ...@@ -1139,9 +1139,9 @@ TEST(WithArgsTest, VoidAction) {
} }
TEST(WithArgsTest, ReturnReference) { TEST(WithArgsTest, ReturnReference) {
Action<int&(int&, void*)> a = WithArgs<0>([](int& a) -> int& { return a; }); Action<int&(int&, void*)> aa = WithArgs<0>([](int& a) -> int& { return a; });
int i = 0; int i = 0;
const int& res = a.Perform(std::forward_as_tuple(i, nullptr)); const int& res = aa.Perform(std::forward_as_tuple(i, nullptr));
EXPECT_EQ(&i, &res); EXPECT_EQ(&i, &res);
} }
......
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