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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020127-1.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
/* This used to fail on h8300.  */
2
 
3
extern void abort (void);
4
extern void exit (int);
5
 
6
unsigned long
7
foo (unsigned long n)
8
{
9
  return (~n >> 3) & 1;
10
}
11
 
12
int
13
main ()
14
{
15
  if (foo (1 << 3) != 0)
16
    abort ();
17
 
18
  if (foo (0) != 1)
19
    abort ();
20
 
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

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