OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
conversion5.C
1
// Build don't link:
2
struct A { };
3
struct B: public A {
4
A a;
5
operator A () { return a; } // WARNING - never used implicitly
6
};
7
void f (const A&);
8
void g()
9
{
10
B b;
11
(A) b; // gets bogus error - trying both constructor and type conversion operator
12
}