URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.eh/] [catch14.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-O1" }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Jakub Jelinek 2 May 2001 <jakub@redhat.com>
void foo();
struct A {
A (int x) { };
~A() {
try {
foo ();
} catch (...) { }
};
};
struct B;
B *x;
struct B {
void a();
void b();
static B* c() {
A y = 0;
return x;
};
};
void B::a() {
c()->b();
}
Go to most recent revision | Compare with Previous | Blame | View Log