* gcc.dg/h8300-ice2.c : New test
authorNitin Yewale <nitiny@kpitcummins.com>
Wed, 30 Jun 2004 16:36:47 +0000 (16:36 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 30 Jun 2004 16:36:47 +0000 (10:36 -0600)
From-SVN: r83912

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/h8300-ice2.c [new file with mode: 0644]

index e043aaac3d692cb707a338371b786b179eea270a..71369c38e58a686af55138fd16632644c18a922b 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-30  Nitin Yewale <nitiny@kpitcummins.com>
+
+       * gcc.dg/h8300-ice2.c : New test
+
 2004-06-30  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
 
        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 (file)
index 0000000..5dd746a
--- /dev/null
@@ -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;
+}