aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/divconst-3.c
blob: 12b38fd80b8ea19fd85f81e04a5e7267ec6e0e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void abort (void);
void exit (int);

long long
f (long long x)
{
  return x / 10000000000LL;
}

int
main (void)
{
  if (f (10000000000LL) != 1 || f (100000000000LL) != 10)
    abort ();
  exit (0);
}