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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr51596.C] - Rev 693

Compare with Previous | Blame | View Log

// PR tree-optimization/51596
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions" }

struct A { float v[2]; };
struct B { int v[2]; };

struct C
{
  B c;
  C f ()
  {
    B b;
    for (int i = 0; i < 2; i++)
      b.v[i] = c.v[i];
    return *this;
  }
};

struct D
{
  A d;
  D (B x)
  {
    for (int i = 0; i < 2; i++)
      d.v[i] = x.v[i];
  }
};

int bar ();

C i;

void
foo ()
{
  while (bar ())
    D (i.f ().c);
}

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.