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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [ehcleanup-1.C] - Blame information for rev 320

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-O2 -fdump-tree-ehcleanup1-details" }
2
extern void can_throw ();
3
class a
4
{
5
public:
6
  ~a ()
7
  {
8
    if (0)
9
      can_throw ();
10
  }
11
};
12
void
13
t (void)
14
{
15
  class a a;
16
  can_throw ();
17
}
18
// We ought to remove implicit cleanup, since destructor is empty.
19
// { dg-final { scan-tree-dump-times "Empty EH handler" 1 "ehcleanup1" } }
20
//
21
// And as a result also contained control flow.
22
// { dg-final { scan-tree-dump-times "Removing unreachable" 2 "ehcleanup1" } }
23
//
24
// { dg-final { cleanup-tree-dump "ehcleanup1" } }

powered by: WebSVN 2.1.0

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