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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [visibility18.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// GROUPS passed visibility
// visibility file
// From: cmwang@iis.sinica.edu.tw (Chien-Min Wang)
// Date:     Fri, 6 Aug 93 19:42:31 CST
// Subject:  A bug in g++ 2.4.5
// Message-ID: <9308061142.AA08533@iiserv>
struct T1 { int i; };

struct T2 { int j; }; // { dg-error "" } private

struct T3 : public T1, private T2 {
} x;

int main ()
{
    x.i = 1;
    x.j = 2;    // error: x.j is private// { dg-error "" } .*
    return 0;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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