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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr48973-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR middle-end/48973 */
2
 
3
extern void abort (void);
4
struct S { int f : 1; } s;
5
int v = -1;
6
 
7
void
8
foo (unsigned int x)
9
{
10
  if (x != -1U)
11
    abort ();
12
}
13
 
14
int
15
main ()
16
{
17
  s.f = (v & 1) > 0;
18
  foo (s.f);
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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