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
318e85cf
Commit
318e85cf
authored
Sep 26, 1997
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
From-SVN: r15721
parent
405a745b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
21 deletions
+51
-21
gcc/testsuite/g++.old-deja/g++.pt/nontype1.C
+2
-0
gcc/testsuite/g++.old-deja/g++.pt/syntax1.C
+2
-0
gcc/testsuite/g++.old-deja/g++.pt/typename1.C
+2
-0
gcc/testsuite/g++.old-deja/g++.pt/typename2.C
+21
-0
gcc/testsuite/g++.old-deja/g++.pt/warn1.C
+24
-21
No files found.
gcc/testsuite/g++.old-deja/g++.pt/nontype1.C
View file @
318e85cf
// Build don't link:
template
<
int
N_length
>
struct
B
{
...
...
gcc/testsuite/g++.old-deja/g++.pt/syntax1.C
View file @
318e85cf
// Build don't link:
struct
X
{
enum
{
a
=
0
,
...
...
gcc/testsuite/g++.old-deja/g++.pt/typename1.C
View file @
318e85cf
// Build don't link:
template
<
class
T
>
struct
A
{
typedef
T
T1
;
...
...
gcc/testsuite/g++.old-deja/g++.pt/typename2.C
0 → 100644
View file @
318e85cf
// Build don't link:
class
Base
{
public
:
class
Bar
{
public
:
virtual
~
Bar
()
{};
};
};
class
Derived
:
public
Base
{
public
:
class
Bar
:
public
Base
::
Bar
{};
};
template
<
class
T
>
struct
XYZ
:
public
T
::
Bar
{
XYZ
()
:
T
::
Bar
()
{
}
};
void
test
()
{
XYZ
<
Base
>
b
;
XYZ
<
Derived
>
d
;
}
gcc/testsuite/g++.old-deja/g++.pt/warn1.C
View file @
318e85cf
template
<
class
T
>
struct
S
{
struct
R
{
R
();
~
R
();
};
// Build don't link:
// Special g++ Options: -Wunused
void
foo
()
{
R
r
;
int
i
;
}
template
<
class
T
>
struct
S
{
struct
R
{
R
();
~
R
();
};
S
();
~
S
();
};
void
foo
()
{
R
r
;
// no warning
int
i
;
// WARNING - unused
}
void
f
()
{
S
<
int
>
si
;
si
.
foo
();
}
S
();
~
S
();
};
void
f
()
{
S
<
int
>
si
;
si
.
foo
();
}
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