summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/visibility21.C
blob: 845854029bfe27425267ff3bdf161a8d25f82fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link: 
// 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(); // ERROR - protected
};

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