repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref3.C
blob
776f2d0c5d225478d6fd36e4111a29b2f4cdaeb2
1
struct Base { };
2
struct Derived : public Base { };
3
struct Choose {
4
operator Base&();
5
operator Derived&();
6
};
7
8
void f()
9
{
10
Choose c;
11
Base& ref = c;
12
}