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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020127-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* 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.