summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20020210-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020210-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20020210-1.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20020210-1.c b/gcc/testsuite/gcc.dg/20020210-1.c
new file mode 100644
index 000000000..369963b25
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20020210-1.c
@@ -0,0 +1,28 @@
+/* This used to 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);
+}