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
43931371
Commit
43931371
authored
25 years ago
by
Mark Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p11116.C
From-SVN: r32224
parent
9fe94fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gcc/testsuite/g++.old-deja/g++.mike/p11116.C
+7
-0
No files found.
gcc/testsuite/g++.old-deja/g++.mike/p11116.C
View file @
43931371
...
...
@@ -2,6 +2,12 @@
// Special g++ Options: -Wno-pmf-conversions
// prms-id: 11116
#if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
// This test tests the rather strange property afforded one by G++ to
// peek inside a pointer-to-member, as if it were a structure. We
// probably shouldn't allow that. In any case, under the new ABI,
// the fields don't have the same names.
#else
class
Bar
{
public
:
int
f
(
int
a
)
{
val
=
a
;
return
val
;
}
...
...
@@ -20,3 +26,4 @@ void foo() {
p
=
(
int
(
*
)(
void
*
,
int
))((
void
(
*
)())((
bp
).
__pfn_or_delta2
.
__pfn
));
a
=
(
*
p
)(
&
bar
,
4
);
}
#endif
This diff is collapsed.
Click to expand it.
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