This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] A new test case.


Hi,

Attached is a patch to add a new testcase.  It tests a problem on
h8300 port that I just fixed.  Committed.

Kazu Hirata

2002-02-10  Kazu Hirata  <kazu@hxi.com>

	* gcc.dg/20020210-1.c: New.

Index: gcc.dg/20020210-1.c
===================================================================
RCS file: 20020210-1.c
diff -N 20020210-1.c
--- /dev/null	Tue May  5 13:32:27 1998
+++ 20020210-1.c	Sun Feb 10 12:27:56 2002
@@ -0,0 +1,28 @@
+/* This used fail on H8/300 due to incorrect specification of pushi1.  */
+
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fomit-frame-pointer" { target h8300-*-* } } */
+
+extern void abort (void);
+extern void exit (int);
+
+void
+bar (int a, int b, int c, int d, int e)
+{
+  if (d != 1)
+    abort ();
+}
+
+void
+foo (int a, int b, int c, int d, int e)
+{
+  bar (a, b, c, d, e);
+}
+
+int
+main ()
+{
+  foo (0, 0, 0, 1, 2);
+  exit (0);
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]