summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/visibility21.C
blob: 6a57783c61b88006e9209da5d1b2a669a40b1839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// GROUPS passed visibility
// visibility file
// From: klamer@mi.el.utwente.nl (Klamer Schutte)
// Date:     Thu, 12 Aug 93 12:03:09 +0200
// Subject:  g++ 2.4.5 failed to report a bug
// Message-ID: <9308121003.AA02294@mi.el.utwente.nl>
class A {
protected:
      void foo(); // { dg-error "" } protected
};

class B : public A
{
        void bar(A &a)
                {       a.foo(); }// { dg-error "" } .*
};