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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -fnon-call-exceptions" }
3
 
4
struct S { ~S () throw () {} };
5
double bar ();
6
 
7
int
8
foo ()
9
{
10
  S a;
11
  int i = 0;
12
  double c = bar ();
13
  c = c < 0 ? -c : c;
14
  if (c <= 1.e-8)
15
    i += 24;
16
  return i;
17
}

powered by: WebSVN 2.1.0

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