OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [access8.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// From: smidt@dd.chalmers.se (Peter Smidt)
3
// Date: 25 Jan 1994 23:41:33 -0500
4
// Bug: g++ forgets access decls after the definition.
5
 
6
class inh { // { dg-error "" } inaccessible
7
        int a;
8
protected:
9
        void myf(int);
10
};
11
 
12
class mel : private inh {
13
protected:
14
        int t;
15
        inh::myf;
16
};
17
 
18
class top_t : protected mel {
19
public:
20
        void myf(int);
21
};
22
 
23
void inh::myf(int i) {
24
        a = i;
25
}
26
 
27
void top_t::myf(int i) {
28
        inh::myf(i);            // { dg-error "" } cannot convert to inh
29
        mel::myf(i);
30
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.