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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20021010-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
#include <limits.h>
2
 
3
int
4
sub ()
5
{
6
  int dummy = 0, a = 16;
7
 
8
  if (a / INT_MAX / 16 == 0)
9
    return 0;
10
  else
11
    return a / INT_MAX / 16;
12
}
13
 
14
int
15
main ()
16
{
17
  if (sub () != 0)
18
    abort ();
19
 
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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