Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.law / visibility21.C
blob6a57783c61b88006e9209da5d1b2a669a40b1839
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
13 class B : public A
15         void bar(A &a)
16                 {       a.foo(); }// { dg-error "" } .*