Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
5ff72f52
Commit
5ff72f52
authored
Oct 25, 2019
by
Piotr Nycz
Browse files
Apply 80chars limit
Issue 2527
parent
d0726821
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googlemock/test/gmock-actions_test.cc
googlemock/test/gmock-actions_test.cc
+2
-1
No files found.
googlemock/test/gmock-actions_test.cc
View file @
5ff72f52
...
@@ -674,7 +674,8 @@ TEST(ReturnRefTest, DoesNotWorkForTemporary) {
...
@@ -674,7 +674,8 @@ TEST(ReturnRefTest, DoesNotWorkForTemporary) {
auto
nonScalarValue
=
[]()
->
std
::
string
{
return
"ABC"
;
};
auto
nonScalarValue
=
[]()
->
std
::
string
{
return
"ABC"
;
};
EXPECT_FALSE
(
CanCallReturnRef
(
nonScalarValue
()));
EXPECT_FALSE
(
CanCallReturnRef
(
nonScalarValue
()));
// cannot use here callable returning "const scalar type" because C++ ignores such const for scalar return type, so the static_cast
// cannot use here callable returning "const scalar type",
// because such const for scalar return type is ignored
EXPECT_FALSE
(
CanCallReturnRef
(
static_cast
<
const
int
>
(
321
)));
EXPECT_FALSE
(
CanCallReturnRef
(
static_cast
<
const
int
>
(
321
)));
auto
constNonScalarValue
=
[]()
->
const
std
::
string
{
return
"CBA"
;
};
auto
constNonScalarValue
=
[]()
->
const
std
::
string
{
return
"CBA"
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment