summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/h8300-ice2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/h8300-ice2.c')
-rw-r--r--gcc/testsuite/gcc.dg/h8300-ice2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/h8300-ice2.c b/gcc/testsuite/gcc.dg/h8300-ice2.c
new file mode 100644
index 000000000..216ea34c9
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/h8300-ice2.c
@@ -0,0 +1,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;
+}