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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/47355
2
// { dg-do compile }
3
// { dg-options "-O -fipa-cp -fipa-cp-clone" }
4
 
5
struct T
6
{
7
  T ();
8
  void *p;
9
  ~T ();
10
};
11
 
12
void foo (T *i);
13
 
14
T *bar ();
15
void baz (T *);
16
 
17
struct V
18
{
19
  long q;
20
  T *r;
21
  ~V ()
22
  {
23
    while (q)
24
      {
25
        foo (r);
26
        ++r;
27
        --q;
28
      }
29
    baz (r);
30
  }
31
};
32
 
33
void
34
foo ()
35
{
36
  V v;
37
  T t;
38
  v.r = bar ();
39
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.