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
7a50d891
Commit
7a50d891
authored
Jun 03, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expand
From-SVN: r34385
parent
f9a7ae04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
gcc/testsuite/g++.old-deja/g++.pt/memtemp96.C
+22
-6
No files found.
gcc/testsuite/g++.old-deja/g++.pt/memtemp96.C
View file @
7a50d891
//
Build don't link:
//
Test for partial specialization of a member function template.
// Origin: Jason Merrill <jason@cygnus.com>
// Origin: Jason Merrill <jason@cygnus.com>
template
<
class
T
>
struct
A
{
template
<
class
T
>
struct
A
{
template
<
class
U
>
void
f
(
U
);
template
<
class
U
>
int
f
(
U
)
{
return
42
;
}
};
};
template
<>
template
<>
template
<
class
U
>
template
<
class
U
>
void
A
<
int
>::
f
(
U
);
int
A
<
char
>::
f
(
U
);
A
<
int
>
a
;
template
<>
template
<
class
U
>
int
A
<
double
>::
f
(
U
)
{
return
24
;
}
void
g
()
int
main
()
{
{
a
.
f
(
3
);
A
<
int
>
ai
;
if
(
ai
.
f
(
0
)
!=
42
)
return
1
;
A
<
double
>
ad
;
if
(
ad
.
f
(
0
)
!=
24
)
return
1
;
A
<
char
>
ac
;
if
(
ac
.
f
(
0
)
!=
36
)
return
1
;
}
}
template
<>
template
<
class
U
>
int
A
<
char
>::
f
(
U
)
{
return
36
;
}
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