Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
5ff72f52
Commit
5ff72f52
authored
Oct 25, 2019
by
Piotr Nycz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 80chars limit
Issue 2527
parent
d0726821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
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