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
97cf4d2d
Commit
97cf4d2d
authored
May 26, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r20060
parent
276ca6ea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
0 deletions
+48
-0
gcc/testsuite/g++.old-deja/g++.ns/anon1.C
+12
-0
gcc/testsuite/g++.old-deja/g++.ns/invalid1.C
+12
-0
gcc/testsuite/g++.old-deja/g++.other/typedef2.C
+10
-0
gcc/testsuite/g++.old-deja/g++.other/typedef3.C
+14
-0
No files found.
gcc/testsuite/g++.old-deja/g++.ns/anon1.C
0 → 100644
View file @
97cf4d2d
namespace
{
void
f
();
}
int
main
()
{
f
();
}
namespace
{
void
f
(){}
}
gcc/testsuite/g++.old-deja/g++.ns/invalid1.C
0 → 100644
View file @
97cf4d2d
//Build don't link:
namespace
x
{
};
void
f
(
int
);
int
main
()
{
x
();
// ERROR - calling a namespace
x
=
4
;
// ERROR - assigning to a namespace
f
(
x
);
// ERROR - passing a namespace as parameter
}
gcc/testsuite/g++.old-deja/g++.other/typedef2.C
0 → 100644
View file @
97cf4d2d
//Build don't link:
struct
S
{
static
const
int
i
;
static
const
int
j
;
};
typedef
S
T
;
const
int
T
::
i
=
4
;
const
int
T
::
j
=
4
;
gcc/testsuite/g++.old-deja/g++.other/typedef3.C
0 → 100644
View file @
97cf4d2d
//Build don't link:
template
<
class
T
>
struct
X
{
T
v
;
X
(){}
virtual
~
X
(){}
virtual
inline
T
f
(
T
x
){
return
x
;}
};
void
f
()
{
typedef
int
H
;
X
<
H
>
y
;
}
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