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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr42871.C] - Rev 301

Compare with Previous | Blame | View Log

struct C
{
  ~C ();
  int c3;
};

C *b2;

static void
b1 (const C &x, unsigned b3, unsigned b4)
{
  unsigned i = 0;
  for (; i < b3; i++)
    if (i < b4)
      {
        b2[0].c3 = x.c3;
        return;
      }
}

int a ();

void
bar (unsigned b3, unsigned b4)
{
  C c[100];
  for (int i = 0; i < 100; i++)
    {
      c[i].c3 = i;
      for (int j = 0; j < b3; j++)
        if (j < b4)
          {
            b2[0].c3 = 0;
            break;
          }
      b1 (c[i], b3, b4);
      a ();
    }
}

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.