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