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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [inline12.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/33458
2
// { dg-do compile }
3
// { dg-options "-O" }
4
 
5
inline void
6
foo (int *p, int n)
7
{
8
  for (; n > 0; --n, ++p)
9
    *p = 0;
10
}
11
 
12
struct A
13
{
14
  int x[2];
15
  A () { foo (x, 2); }
16
};
17
 
18
inline A
19
getA ()
20
{
21
  return A ();
22
}
23
 
24
struct B
25
{
26
  A a;
27
  B ();
28
};
29
 
30
B::B () : a (getA ())
31
{
32
}

powered by: WebSVN 2.1.0

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