OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr44178.C] - Rev 384

Compare with Previous | Blame | View Log

// PR debug/44178
// { dg-do compile }
// { dg-options "-funroll-loops -fcompare-debug" { target i?86-*-* x86_64-*-* } }
// { dg-options "-fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } }

struct A
{
  A ();
  A (const A &) {}
  A &operator = (const A &);
};

struct B
{
  int u1;
  A u2;
  int u3;
  int i;
};

B f1 (int *);
B f2 (int, int, int, int);
B f3 (B *, B *);

B
f4 (int x, int y, int z)
{
  B b1, b2;
  for (int i = x; i > 0; i--)
    for (int j = y; j > 0; j--)
      {
        int k;
        f1 (&k);
        b2 = f2 (i, 0, 0, z);
        if (b2.i) return b2;
        f3 (&b1, &b2);
      }
  return b1;
}

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.