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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using38.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// PR c++/6936
3
 
4
struct Baser
5
{
6
    enum { j, i }; // { dg-error "inaccessible" }
7
};
8
 
9
struct Base : Baser
10
{
11
    static void j();
12
    static void i();
13
};
14
 
15
struct Derv : Base
16
{
17
  using Baser::j;
18
private:
19
  using Baser::i;
20
};
21
 
22
int k = Derv::j;
23
int l = Derv::i; // { dg-error "context" }

powered by: WebSVN 2.1.0

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