OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / overload7.C
index 3611505..2dc3b03 100644 (file)
@@ -1,6 +1,6 @@
+// { dg-do assemble  }
 // Bug: g++ thinks there is a default conversion from A& to B*.
 //      There isn't.
-// Build don't link:
 
 struct A {
   operator A* ();
@@ -11,5 +11,5 @@ struct B: public A { };
 void foo (B* bp);
 
 void bar (A& a) {
-  foo (a);                     // ERROR - 
+  foo (a);                     // { dg-error "" } 
 }