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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [inline11.C] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// { dg-options "-O2" }
3
// Origin: Jakub Jelinek 
4
 
5
class baz
6
{
7
public:
8
  baz& operator += (const baz&);
9
};
10
 
11
inline baz& baz::operator += (const baz& r)
12
{
13
  return *this;
14
}
15
 
16
inline baz operator + (int x, const baz& y)
17
{
18
  return y;
19
}
20
 
21
static inline baz bar (int alpha);
22
static inline baz foo (int alpha)
23
{
24
  baz tmp = alpha + foo (alpha);
25
  tmp += alpha + bar (alpha);
26
  return tmp;
27
}
28
 
29
static inline baz bar (int alpha)
30
{
31
  baz tmp = alpha + bar (alpha);
32
  tmp += alpha + foo (alpha);
33
  return tmp;
34
}

powered by: WebSVN 2.1.0

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