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
160387c4
Commit
160387c4
authored
Jul 19, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r21300
parent
6288717f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
1 deletions
+79
-1
gcc/testsuite/g++.old-deja/g++.ext/implicit1.C
+14
-0
gcc/testsuite/g++.old-deja/g++.ns/koenig7.C
+22
-0
gcc/testsuite/g++.old-deja/g++.ns/lookup5.C
+1
-1
gcc/testsuite/g++.old-deja/g++.ns/template5.C
+33
-0
gcc/testsuite/g++.old-deja/g++.other/lookup1.C
+9
-0
No files found.
gcc/testsuite/g++.old-deja/g++.ext/implicit1.C
0 → 100644
View file @
160387c4
// test for implicit declaration
// Special g++ Options: -w
int
main
()
{
return
blarg
();
}
extern
"C"
int
blarg
(...)
{
return
0
;
}
gcc/testsuite/g++.old-deja/g++.ns/koenig7.C
0 → 100644
View file @
160387c4
// Test for Koenig lookup involving overloaded functions.
namespace
N1
{
struct
A
{
};
void
f1
(
A
)
{}
void
f2
(
float
)
{}
void
g
(
void
(
*
)(
float
))
{}
}
using
N1
::
f1
;
void
f1
(
float
)
{}
using
N1
::
f2
;
template
<
class
T
>
void
f2
(
N1
::
A
,
T
)
{}
void
g
(
void
(
*
)(
int
))
{}
int
main
()
{
g
(
&
f1
);
// Works?
g
(
f2
);
// Works?
}
gcc/testsuite/g++.old-deja/g++.ns/lookup5.C
View file @
160387c4
...
...
@@ -5,7 +5,7 @@ namespace A{
namespace
B
{
using
namespace
A
;
void
f
(
int
);
void
f
(
int
);
// ERROR - referenced below
}
using
namespace
B
;
...
...
gcc/testsuite/g++.old-deja/g++.ns/template5.C
0 → 100644
View file @
160387c4
//Check whether namespace-scoped template instantiations
//are mangled differently.
namespace
X
{
template
<
class
T
>
struct
Y
{
int
f
(
T
){
return
1
;
}
template
<
class
X
>
void
g
(){}
};
}
template
<
class
T
>
struct
Y
{
int
f
(
T
){
return
2
;
}
};
int
main
()
{
X
::
Y
<
int
>
z
;
if
(
z
.
f
(
4
)
!=
1
)
return
1
;
z
.
template
g
<
long
>
();
Y
<
int
>
z1
;
if
(
z1
.
f
(
5
)
!=
2
)
return
1
;
return
0
;
}
gcc/testsuite/g++.old-deja/g++.other/lookup1.C
0 → 100644
View file @
160387c4
// simple test for id from base class during class defn
// Build don't link:
struct
foo
{
enum
{
blah
=
1
};
};
struct
bar
:
public
foo
{
char
cache
[
blah
];
};
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