OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.eh / ctor1.C
index 9874131..6071d7e 100644 (file)
@@ -1,7 +1,8 @@
+// { dg-do assemble  }
 struct A
 {
   A();
-  A(A&);                       // ERROR - referenced below
+  A(A&);                       // { dg-error "" } referenced below
 };
 
 int
@@ -9,7 +10,7 @@ main ()
 {
   try
     {
-      throw A();               // ERROR - can't copy
+      throw A();               // { dg-error "" } can't copy
     }
   catch (...) { }
 }