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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr44182.C] - Rev 826

Compare with Previous | Blame | View Log

// PR tree-optimization/44182
// { dg-do compile }
// { dg-options "-fcompare-debug" }

struct S
{
  int i;
  S ();
  ~S ();
  void f1 ();
  void f2 (S s)
  {
    f3 (s.i);
    for (int j = 0; j < s.i; j++) f1 ();
  }
  void f3 (int j)
  {
    if (j > i) f1 ();
  }
};

void
f (S *x)
{
  x->f2 (S ());
}

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.