summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr35163.c
blob: 93b180d5d82c46221b87fdc15efcab14891d18a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern void abort(void);

int main()
{
  signed char a = -30;
  signed char b = -31;
  #if(__SIZEOF_INT__ >= 4)
  if (a > (unsigned short)b)
#else
  if ((long) a > (unsigned short)b)
#endif
    abort ();
  return 0;
}