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
711b552c
Commit
711b552c
authored
Sep 18, 1999
by
Alexandre Oliva
Committed by
Alexandre Oliva
Sep 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* overload1.C: New test.
From-SVN: r29499
parent
7cd33af0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
+2
-0
gcc/testsuite/g++.old-deja/g++.oliva/overload1.C
+23
-0
No files found.
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
View file @
711b552c
1999-09-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1999-09-18 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* overload1.C: New test.
* inline1.C: New test.
* inline1.C: New test.
1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
...
...
gcc/testsuite/g++.old-deja/g++.oliva/overload1.C
0 → 100644
View file @
711b552c
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// Based on bug report by JDonner <jdonner@schedsys.com>
struct
foo
{
static
int
bar
();
// ERROR - candidate
void
bar
(
int
);
// ERROR - candidate
};
/* gcc emits a hard error without -pedantic, and a warning with
-pedantic, even in bad1. */
int
(
*
ok1
)()
=
foo
::
bar
;
// gets bogus error - XFAIL *-*-*
void
(
foo
::*
bad1
)(
int
)
=
foo
::
bar
;
// ERROR - missing &
int
(
*
ok2
)()
=
&
foo
::
bar
;
// ok
void
(
*
bad2
)(
int
)
=
foo
::
bar
;
// ERROR - overload resolution fails
void
(
foo
::*
ok3
)(
int
)
=
&
foo
::
bar
;
// ok
int
(
foo
::*
bad3
)()
=
foo
::
bar
;
// ERROR - overload resolution fails
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