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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR middle-end/51895
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
struct S
6
{
7
  long a;
8
  char b;
9
  S () : a (0), b (0) {}
10
  bool baz ();
11
};
12
 
13
__attribute__((noinline)) static bool
14
bar (S x, S y)
15
{
16
  y = x;
17
  return y.baz ();
18
}
19
 
20
bool
21
foo (S x)
22
{
23
  S y;
24
  return bar (x, y);
25
}

powered by: WebSVN 2.1.0

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