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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17724-4.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// PR tree-optimization/17724
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
extern "C" char *strcpy (char* d, const char* s);
6
 
7
class A { public: A (); ~A (); };
8
 
9
inline char * B (char *s, const char *t)
10
{ return ::strcpy (s, t); }
11
 
12
class C { int D (void); int E; };
13
 
14
int C::D (void)
15
{
16
  A a;
17
  try
18
    {
19
      char z[22];
20
      if (this->E) B (z, "");
21
      return 0;
22
    }
23
  catch (int &f) { return -1; }
24
}

powered by: WebSVN 2.1.0

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