view gcc/testsuite/gcc.c-torture/compile/pr22398.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

#if ULONG_MAX != 4294967295u && ULONG_MAX != 18446744073709551615ull
int main(void) { exit (0); }
#else
#if ULONG_MAX != 18446744073709551615ull
#define NUM 0xf0000000
#else
#define NUM 0xf000000000000000
#endif


int func1(void *rw)
{
  return (rw && (((unsigned long) rw) >= NUM) );
}

void func2(void *rw)
{
  while(rw && (((unsigned long) rw) >= NUM) ) {}
}

#endif