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
8b424a9b
Commit
8b424a9b
authored
Sep 29, 1998
by
Benjamin Kosnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r22641
parent
4955a043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C
+49
-0
No files found.
gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C
0 → 100644
View file @
8b424a9b
// 980945 bkoz
// test for correct operators at link time
/*
/tmp/cca211431.o: In function `void blah<foo<int> >(foo<int> const &)':
/tmp/cca211431.o(.void gnu.linkonce.t.blah<foo<int> >(foo<int> const &)+0x1e): undefined reference to `void x<int>(int const &)'
*/
template
<
class
T
>
class
foo
{
public
:
foo
()
{}
friend
void
x
(
const
T
&
)
{
}
};
template
<
class
T
>
void
blah
(
const
T
&
)
{
T
y
;
x
(
4
);
};
main
()
{
const
foo
<
int
>
v
;
blah
(
v
);
}
/*
fno-exceptions -fno-rtti
1.98r1.o:
00000000 W __t3foo1Zi
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 t gcc2_compiled.
00000000 T main
U x__H1Zi_RCX01_v
1.egcs.o:
00000000 W __t3foo1Zi
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 t gcc2_compiled.
00000000 T main
00000000 W x__FRCi
the reason this goes away at -O is because the U or W function is
elided completely.
*/
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