URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// { dg-options "-O1" }
|
// { dg-options "-O1" }
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Jakub Jelinek 2 May 2001
|
// Contributed by Jakub Jelinek 2 May 2001
|
|
|
|
|
void foo();
|
void foo();
|
|
|
struct A {
|
struct A {
|
A (int x) { };
|
A (int x) { };
|
~A() {
|
~A() {
|
try {
|
try {
|
foo ();
|
foo ();
|
} catch (...) { }
|
} catch (...) { }
|
};
|
};
|
};
|
};
|
|
|
struct B;
|
struct B;
|
|
|
B *x;
|
B *x;
|
|
|
struct B {
|
struct B {
|
void a();
|
void a();
|
void b();
|
void b();
|
static B* c() {
|
static B* c() {
|
A y = 0;
|
A y = 0;
|
return x;
|
return x;
|
};
|
};
|
};
|
};
|
|
|
void B::a() {
|
void B::a() {
|
c()->b();
|
c()->b();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.