repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2000-10-31 Philip Blundell <philb@gnu.org>
[binutils.git]
/
ld
/
testsuite
/
ld-selective
/
4.cc
blob
02864a731cd93111b411d11eaa02d56e41c0f7da
1
struct
A
2
{
3
virtual
void
foo
();
4
virtual
void
bar
();
5
};
6
7
void
A
::
foo
() { }
// lose
8
void
A
::
bar
() { }
// keep
9
10
struct
B
:
public
A
11
{
12
virtual
void
foo
();
13
};
14
15
void
B
::
foo
() { }
// lose
16
17
void
_start
()
__asm__
(
"_start"
);
// keep
18
19
A a
;
// keep
20
B b
;
21
A
*
getme
() {
return
&
a
; }
// keep
22
23
void
_start
()
24
{
25
getme
()->
bar
();
26
}
27
28
extern
"C"
void
__main
() { }