summaryrefslogtreecommitdiff
path: root/tests/coreutils.c
blob: 60b9176af3b8720a4b41eb99b9ed9295164a72a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))

int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                     && LARGE_OFF_T % 2147483647 == 1)
                    ? 1 : -1];
int
main (void)
{

  ;
  return 0;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback