From 11012cd6977d7a42778d474b494c1431b49a3945 Mon Sep 17 00:00:00 2001 From: Nitin Yewale Date: Wed, 30 Jun 2004 16:36:47 +0000 Subject: [PATCH] * gcc.dg/h8300-ice2.c : New test From-SVN: r83912 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/h8300-ice2.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/h8300-ice2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e043aaac3d6..71369c38e58 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-06-30 Nitin Yewale + + * gcc.dg/h8300-ice2.c : New test + 2004-06-30 Tobias Schlueter PR fortran/16161 diff --git a/gcc/testsuite/gcc.dg/h8300-ice2.c b/gcc/testsuite/gcc.dg/h8300-ice2.c new file mode 100644 index 00000000000..5dd746a42e9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/h8300-ice2.c @@ -0,0 +1,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; +} -- 2.30.2