URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 12 Mar 2002
|
// Contributed by Nathan Sidwell 12 Mar 2002
|
|
|
// PR c++/5659. Failed to notice default accessed changed
|
// PR c++/5659. Failed to notice default accessed changed
|
|
|
class Foo;
|
class Foo;
|
struct Foo
|
struct Foo
|
{
|
{
|
static int m;
|
static int m;
|
};
|
};
|
|
|
class Outer {
|
class Outer {
|
private:
|
private:
|
class Inner;
|
class Inner;
|
Inner *i;
|
Inner *i;
|
public:
|
public:
|
void pub();
|
void pub();
|
};
|
};
|
|
|
struct Outer::Inner {
|
struct Outer::Inner {
|
Inner(int i);
|
Inner(int i);
|
};
|
};
|
|
|
void Outer::pub() { i = new Inner(Foo::m); }
|
void Outer::pub() { i = new Inner(Foo::m); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.