OSDN Git Service

/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / visibility20.C
index 011abef..0560523 100644 (file)
@@ -1,4 +1,4 @@
-// Build don't link: 
+// { dg-do assemble  }
 // GROUPS passed visibility
 // visibility file
 // From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
@@ -8,7 +8,7 @@
 
 class Base {
 protected:
-      void protectedBaseFunction() {} // ERROR - protected
+      void protectedBaseFunction() {} // { dg-error "" } protected
 public:
     Base() {}
 };
@@ -23,14 +23,14 @@ public:
 
 void
 Derived::noticeThisFunction(Base *b) {
-    b->protectedBaseFunction(); // ARM says this is not allowed// ERROR - .*
+    b->protectedBaseFunction(); // ARM says this is not allowed// { dg-error "" } .*
                                 // since it is not called on 'this'
 }
 
-main() {
+int main() {
     Base b;
     Derived d;
     d.noticeThisFunction(&b);
-    printf("gpptest run\n");// ERROR - .*
+    printf("gpptest run\n");// { dg-error "" } .*
 }