diff options
author | Kazu Hirata <kazu@hxi.com> | 2002-02-10 20:30:10 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-02-10 20:30:10 +0000 |
commit | b516907f33457a7bfff26fd2ce4532ec07564928 (patch) | |
tree | 041053553a7a49ffa79afe1be0befee6280561a4 /gcc | |
parent | 232bd029ee7c81393b0574771e133200ec62aa73 (diff) | |
download | gcc-b516907f33457a7bfff26fd2ce4532ec07564928.zip gcc-b516907f33457a7bfff26fd2ce4532ec07564928.tar.gz gcc-b516907f33457a7bfff26fd2ce4532ec07564928.tar.bz2 |
* gcc.dg/20020210-1.c: New.
From-SVN: r49657
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20020210-1.c | 28 |
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8754a13..f70c311 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..981f91c --- /dev/null +++ b/gcc/testsuite/gcc.dg/20020210-1.c @@ -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); +} |