summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/h8300-ice2.c
blob: 216ea34c94c6e4309bc6b335f2cf0ec8093dc0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* ICE for signed/unsigned long and signed char comparison */
int main()
{
       unsigned long ul = 4;
       long sl = 2;
       signed char sch = -1;
       if (ul <= sch);
               return 0;
       if (sl <= sch)
               return 1;
}