aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorNitin Yewale <nitiny@kpitcummins.com>2004-06-30 16:36:47 +0000
committerJeff Law <law@gcc.gnu.org>2004-06-30 10:36:47 -0600
commit11012cd6977d7a42778d474b494c1431b49a3945 (patch)
treec4cec3dcddc8841ded8a1e9b2c333c88bdf2530b /gcc/testsuite/gcc.dg
parent9abf398dd9214c08b7ab611c81536c6645fefecc (diff)
downloadgcc-11012cd6977d7a42778d474b494c1431b49a3945.zip
gcc-11012cd6977d7a42778d474b494c1431b49a3945.tar.gz
gcc-11012cd6977d7a42778d474b494c1431b49a3945.tar.bz2
* gcc.dg/h8300-ice2.c : New test
From-SVN: r83912
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-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 0000000..5dd746a
--- /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;
+}