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
f4c6443e
Commit
f4c6443e
authored
Aug 25, 1999
by
Nathan Sidwell
Committed by
Nathan Sidwell
Aug 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.old-deja/g++.other/decl5.C: New test
From-SVN: r28857
parent
d7f426dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.old-deja/g++.other/decl5.C
+78
-0
No files found.
gcc/testsuite/ChangeLog
View file @
f4c6443e
1999-08-25 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.other/decl5.C: New test.
1999-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* noncompile/noncompile.exp: Load_lib c-torture.exp.
...
...
gcc/testsuite/g++.old-deja/g++.other/decl5.C
0 → 100644
View file @
f4c6443e
// Build don't link:
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 Apr 1999 <nathan@acm.org>
// derived from a bug report by <rch@larissa.sd.bi.ruhr-uni-bochum.de>
// http://egcs.cygnus.com/ml/egcs-bugs/1999-04/msg00626.html
// the code is wrong, but we fell over badly
struct
A
{
int
A
::
fn
();
// WARNING - extra qualification
int
A
::
m
;
// WARNING - extra qualification
struct
e
;
struct
A
::
e
{
int
i
;};
struct
A
::
expand
{
// WARNING - extra qualification
int
m
;
};
struct
Z
;
expand
me
;
void
foo
(
struct
A
::
e
);
void
foo
(
struct
A
::
z
);
// WARNING - extra qualification
};
struct
Q
;
struct
B
{
struct
A
::
fink
{
// ERROR - no such member
int
m
;
};
struct
A
::
Z
{
// ERROR XFAIL - A::Z not a member of B
int
m
;
};
int
m
;
int
n
;
struct
::
Q
{
// ERROR XFAIL - ::Q not a member of B
int
m
;
};
int
A
::
fn
()
{
// ERROR - A::fn not a member of B
return
0
;
}
void
fn
(
struct
::
Q
&
);
void
foo
(
struct
A
::
y
);
// ERROR - no such member
};
struct
::
C
{
// WARNING - extra qualification
int
i
;
};
namespace
N
{
int
fn
();
struct
F
;
}
namespace
NMS
{
void
NMS
::
fn
();
// WARNING - extra qualification XFAIL
int
NMS
::
i
;
// WARNING - extra qualification XFAIL
struct
NMS
::
D
{
// WARNING - extra qualification
int
i
;
};
struct
N
::
E
{
// ERROR - no such type
int
i
;
};
struct
::
F
{
// ERROR - no such type
int
i
;
};
int
N
::
fn
()
{
// ERROR - N::fn not a member of NMS
return
0
;
}
struct
N
::
F
{
// ERROR XFAIL - N::F not a member of NMS
int
i
;
};
}
NMS
::
D
thing
;
void
NMS
::
fn
()
{
i
=
3
;
}
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