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 774

Go to most recent revision | 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 ();
}

Go to most recent revision | 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.