OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / conversion4.C
1 // { dg-do assemble  }
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)); // { dg-bogus "" } functional cast treated differently from C style
14 }