volatile char c;
volatile unsigned char uc;
volatile int i;
volatile unsigned u;
volatile long l;
volatile unsigned long ul;

#ifdef TEST0
void foo(void)
{
  i = 10000 * 10000;	/* WARNING(SDCC) */
  i = 0x4000 * 0x4000;	/* WARNING(SDCC) */
}
#endif

#ifdef TEST1
void foo(void)
{
  uc = 1 <<  7;	        /* IGNORE(SDCC) */ // Gives a false warning (bug #2733)

  i = c  << 10;
  i = 1  << 10;
  i = c  << 16;		/* WARNING(SDCC) */
  i = 1  << 16;		/* WARNING(SDCC) */
  i = uc << 16;		/* WARNING(SDCC) */

  l = l  << 31;
  l = l  << 32;		/* WARNING(SDCC) */ /* IGNORE(GCC) */
  l = ul << 32;		/* WARNING(SDCC) */ /* IGNORE(GCC) */
}
#endif


#ifdef TEST2
void foo(void)
{
  i = 1  >> 40;		/* IGNORE(SDCC) */ /* WARNING(GCC) */ // Warning missing (bug #2734)

  i = uc >>  7;
  i = 1  >>  7;
  i = uc >>  8;		/* WARNING(SDCC) */
#if 0
  i = 1  >>  8;		/* WARN___(SDCC) */
#endif

#if 0
  i = i  >> 40;		/* WARN___(GCC)  */
#endif

  i = u  >> 15;
  i = u  >> 16;		/* WARNING(SDCC) */

#if 0
  i = l  >> 40;		/* WARN___(GCC)  */
#endif

  i = ul >> 31;
  i = ul >> 32;		/* WARNING(SDCC) */ /* IGNORE(GCC) */
}
#endif

