Esempio n. 1
0
int  main(void)
{
  or_lit2uchar();
  or_lit2uint();
  or_lit2ulong();

  uchar0=0;
  uchar1=1;
  or_uchar2uchar();

  uint0=0;
  uint1=1;
  or_uint2uint();

#if SUPPORT_BIT_TYPES
  or_bits1();
  if(bit0)
    failures++;

  or_bits2();
  if(bit0)
    failures++;

  bit1=1;
  or_bits1();
  if(!bit0)
    failures++;

  or_bits2();
  if(!bit0)
    failures++;
#endif

  success = failures;
  done();
  printf("failures: %d\n",failures);

  return failures;
}
Esempio n. 2
0
void main(void)
{

  or_lit2uchar();
  or_lit2uint();
  or_lit2ulong();

  uchar0=0;
  uchar1=1;
  or_uchar2uchar();

  uint0=0;
  uint1=1;
  or_uint2uint();

#if SUPPORT_BIT_TYPES
  or_bits1();
  if(bit0)
    failures++;

  or_bits2();
  if(bit0)
    failures++;

  bit1=1;
  or_bits1();
  if(!bit0)
    failures++;

  or_bits2();
  if(!bit0)
    failures++;
#endif

  done();
}