Add an UNSPEC_PROLOGUE_USE to prevent the link register from being considered dead.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / visibility4.C
blob2d7079eed2b1ea04786e932cc16226637e6dd56e
1 // Build don't link: 
2 // GROUPS passed visibility
3 // visibility file
4 // From: dcb@us-es.sel.de (David Binderman 3841)
5 // Date:     Tue, 30 Mar 93 15:48:47 +0200
6 // Subject:  page 242 of the ARM
7 // Message-ID: <9303301348.AA20751@slsvitt>
9 class A {
10 public:
11      int b; // ERROR - private
14 class C : private A {                   // NOTE WELL. private, not public
15 public:
16         int d;
19 extern "C" int printf( const char *, ...);
21 class E : public C {
22         void f() {
23                 printf( "%d\n", b);// ERROR - .*
24         };