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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr41680.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
// PR target/41680
2
// { dg-do compile }
3
 
4
extern void baz (float);
5
 
6
inline bool
7
bar (float x)
8
{
9
  union { float f; int i; } u;
10
  u.f = x;
11
  return (u.i & 1);
12
}
13
 
14
void
15
foo (float *x)
16
{
17
  for (int i = 0; i < 10; i++)
18
    {
19
      float f = x[i];
20
      if (!bar (f))
21
        baz (f);
22
    }
23
}

powered by: WebSVN 2.1.0

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