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
ed18e47e
Commit
ed18e47e
authored
Jun 26, 2000
by
Nathan Sidwell
Committed by
Nathan Sidwell
Jun 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-deja/g++.other/ambig3.C: New test.
From-SVN: r34710
parent
0e997e76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.other/ambig3.C
+34
-0
No files found.
gcc/testsuite/ChangeLog
View file @
ed18e47e
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/ambig3.C: New test.
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.pt/syntax1.C: New test.
* g++.old-deja/g++.pt/syntax1.C: New test.
* g++.old-deja/g++.pt/syntax2.C: New test.
* g++.old-deja/g++.pt/syntax2.C: New test.
* g++.old-deja/g++.other/syntax3.C: New test.
* g++.old-deja/g++.other/syntax3.C: New test.
...
...
gcc/testsuite/g++.old-deja/g++.other/ambig3.C
0 → 100644
View file @
ed18e47e
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 23 June 2000 <nathan@codesourcery.com>
// Origin GNATS bug report 69 from Glenn Ammons <ammons@cs.wisc.edu>
//
// A base which derives a virtual base hides declarations in the virtual base,
// even if that virtual base is accessible via another path [10.2]/6. Make
// sure that non-virtual bases of the virtual base are also hidden, not matter
// what order bases are declared in.
struct
A
{
int
a
;};
struct
B
:
A
{};
struct
L1
:
virtual
B
{
int
a
;
};
struct
L2
:
virtual
A
{
int
a
;
};
struct
R1
:
virtual
B
{};
struct
R2
:
virtual
A
{};
struct
C1
:
R1
,
L1
{};
struct
C2
:
R2
,
L2
{};
struct
D1
:
L1
,
R1
{};
struct
D2
:
L2
,
R2
{};
void
fn
(
C1
*
c1
,
D1
*
d1
,
C2
*
c2
,
D2
*
d2
)
{
c1
->
a
=
1
;
d1
->
a
=
1
;
c2
->
a
=
1
;
d2
->
a
=
1
;
}
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