repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.cp
/
pr12028.cc
blob
0fcab6b1e9306e736e27247e679dfc8041f974a2
1
class
A
{};
2
class
B
{};
3
class
C
:
public
B
{};
4
5
namespace
D
{
6
int
foo
(
A
) {
return
11
; }
7
int
foo
(
C
) {
return
12
; }
8
}
9
10
int
main
()
11
{
12
A a
;
13
B b
;
14
C c
;
15
16
D
::
foo
(
a
);
17
// D::foo (b);
18
D
::
foo
(
c
);
19
20
return
0
;
21
}