summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-divconst-3.c
blob: 8b7f207741ddc94bc42442a6e361abc8390257c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
divconst-3.c from the execute part of the gcc torture tests.
*/

#include <testfwk.h>

#ifndef __SDCC_pdk14 // Lack of memory
long long
f (long long x)
{
  return x / 10000000000LL;
}
#endif

void
testTortureExecute (void)
{
#ifndef __SDCC_pdk14 // Lack of memory
  ASSERT (f (10000000000LL) == 1);
  ASSERT (f (100000000000LL) == 10);
  return;
#endif
}