OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion4.C
1 // Build don't link:
2 struct A {
3   A (int);
4 };
5 struct B {
6   operator int () { return 1; }
7 };
8 void f (const A&);
9 void g()
10 {
11   B b;
12   f ((A) b);
13   f (A (b)); // gets bogus error - functional cast treated differently from C style
14 }