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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [nrv3.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// PR optimization/6189
2
// Bug: we forgot about foo's nrv after writing it out.
3
// { dg-options -O3 }
4
// { dg-do run }
5
 
6
struct A
7
{
8
  int i;
9
};
10
 
11
 
12
A foo ()
13
{
14
  A a;
15
  a.i = 42;
16
  return a;
17
}
18
 
19
 
20
int main()
21
{
22
  A b = foo();
23
  return b.i != 42;
24
}

powered by: WebSVN 2.1.0

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