* gcc.dg/20020210-1.c: New.
authorKazu Hirata <kazu@hxi.com>
Sun, 10 Feb 2002 20:30:10 +0000 (20:30 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 10 Feb 2002 20:30:10 +0000 (20:30 +0000)
From-SVN: r49657

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

index 8754a13556abe0146340e6a1e27bdc4c6119a58a..f70c31191173bd992326e67cceb7746359ca0e35 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-10  Kazu Hirata  <kazu@hxi.com>
+
+       * gcc.dg/20020210-1.c: New.
+
 2002-02-09  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * g77.f-torture/execute/947.f: New regression test
diff --git a/gcc/testsuite/gcc.dg/20020210-1.c b/gcc/testsuite/gcc.dg/20020210-1.c
new file mode 100644 (file)
index 0000000..981f91c
--- /dev/null
@@ -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);
+}