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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// PR tree-optimization/47355
// { dg-do compile }
// { dg-options "-O -fipa-cp -fipa-cp-clone" }

struct T
{
  T ();
  void *p;
  ~T ();
};

void foo (T *i);

T *bar ();
void baz (T *);

struct V
{
  long q;
  T *r;
  ~V ()
  {
    while (q)
      {
        foo (r);
        ++r;
        --q;
      }
    baz (r);
  }
};

void
foo ()
{
  V v;
  T t;
  v.r = bar ();
}

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.