OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / visibility7.C
index 670547d..f7bf00c 100644 (file)
@@ -1,9 +1,9 @@
-// Build don't link: 
+// { dg-do assemble  }
 // GROUPS passed visibility
 class X
 {
 public:
-  void fn ();// ERROR - .*
+  void fn ();// { dg-error "" } .*
 };
 class Y : private X
 {};
@@ -11,5 +11,5 @@ class Y : private X
 class Unrelated
 {
 public:
-  void foo () { Y y; y.fn (); }// ERROR - .*
+  void foo () { Y y; y.fn (); }// { dg-error "" } .*
 };