Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
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
lvzhengyang
riscv-gcc-1
Commits
32293e2b
Commit
32293e2b
authored
Jun 10, 2011
by
Jason Merrill
Committed by
Jason Merrill
Jun 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* testsuite/20_util/bind/ref_neg.cc: Remove wrong test lines.
From-SVN: r174907
parent
d784c0d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
libstdc++-v3/ChangeLog
+2
-0
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
+4
-6
No files found.
libstdc++-v3/ChangeLog
View file @
32293e2b
2011-06-10 Jason Merrill <jason@redhat.com>
* testsuite/20_util/bind/ref_neg.cc: Remove wrong test lines.
* testsuite/20_util/bind/ref_neg.cc: Remove dg-excess-errors,
fix dg-error markup.
...
...
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
View file @
32293e2b
...
...
@@ -29,10 +29,8 @@ int inc(int& i) { return ++i; }
void
test01
()
{
const
int
dummy
=
0
;
std
::
bind
(
&
inc
,
_1
)(
0
);
// { dg-error "" }
std
::
bind
(
&
inc
,
std
::
ref
(
dummy
))();
// { dg-error "" }
std
::
bind
(
&
inc
,
dummy
)();
std
::
bind
(
&
inc
,
0
)();
std
::
bind
(
&
inc
,
_1
)(
0
);
// { dg-error "no match" }
std
::
bind
(
&
inc
,
std
::
ref
(
dummy
))();
// { dg-error "no match" }
}
struct
Inc
...
...
@@ -46,8 +44,8 @@ struct Inc
void
test02
()
{
const
int
dummy
=
0
;
std
::
bind
(
Inc
(),
_1
)(
dummy
);
// { dg-error
"
" }
std
::
bind
(
&
Inc
::
f
,
Inc
(),
std
::
ref
(
dummy
))();
// { dg-error
"
" }
std
::
bind
(
Inc
(),
_1
)(
dummy
);
// { dg-error
"no match
" }
std
::
bind
(
&
Inc
::
f
,
Inc
(),
std
::
ref
(
dummy
))();
// { dg-error
"no match
" }
}
int
main
()
...
...
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