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
355298fb
Commit
355298fb
authored
25 years ago
by
Alexandre Oliva
Committed by
Alexandre Oliva
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* thunk1.C: New test.
From-SVN: r28858
parent
f4c6443e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.oliva/thunk1.C
+38
-0
No files found.
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
View file @
355298fb
1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
* thunk1.C: New test.
1999-08-06 Alexandre Oliva <oliva@dcc.unicamp.br>
* dwarf2.C, dwarf3.C: Added XFAIL for Solaris/x86. Removed
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.old-deja/g++.oliva/thunk1.C
0 → 100644
View file @
355298fb
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Fredrik Öhrström <d92-foh@nada.kth.se>
// Special g++ Options: -fvtable-thunks
// execution test - XFAIL *-*-*
#include <cstdlib>
using
namespace
std
;
struct
vbase
{
virtual
int
get_a
()
const
=
0
;
};
struct
base
:
virtual
vbase
{
int
a
;
base
(
int
aa
)
:
a
(
aa
)
{}
int
get_a
()
const
{
return
a
;
}
};
struct
mid
:
base
{
mid
(
int
bb
)
:
base
(
bb
)
{
// when mid is not in charge of vbase initialization,
// a derived-aware vtable is needed for vbase
if
(((
vbase
*
)
this
)
->
get_a
()
!=
bb
)
abort
();
}
};
struct
derived
:
virtual
mid
{
derived
(
int
cc
)
:
mid
(
cc
)
{}
};
int
main
()
{
derived
(
1
);
}
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