summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/h8300-ice2.c
blob: 5dd746a42e962f1d00178f67e61fb8a17fa513f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*{dg-do compile target {h8300-*-*}} */
/* 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;
}