-// Build don't link:
+// { dg-do assemble }
// GROUPS passed visibility
// visibility file
// From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
class Base {
protected:
- void protectedBaseFunction() {} // ERROR - protected
+ void protectedBaseFunction() {} // { dg-error "" } protected
public:
Base() {}
};
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 "" } .*
}