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-6.C] - Rev 816

Compare with Previous | Blame | View Log

// PR tree-optimization/17724
// { dg-do compile }
// { dg-options "-O2" }

extern char *strcpy (char* d, const char* s);

class A { public: A (); ~A (); };

inline char * B (char *s, const char *t)
{ return ::strcpy (s, t); }

class C { int D (void); int E; };

int C::D (void)
{
  A a;
  try
    {
      char z[22];
      if (this->E) B (z, "");
      return 0;
    }
  catch (int &f) { return -1; }
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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