From 7042d51057a0e81d164413b0b839bbd97b34610d Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Thu, 15 Nov 2001 03:55:26 +0000 Subject: 920923-1.c: stormy16 produces an extra error message. * gcc.dg/noncompile/920923-1.c: stormy16 produces an extra error message. * gcc.c-torture/execute/20011114-1.c: New testcase. From-SVN: r47038 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/20011114-1.c | 11 +++++++++++ gcc/testsuite/gcc.dg/noncompile/920923-1.c | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.c-torture/execute/20011114-1.c (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f9e7a00..924e3b1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2001-11-14 Geoffrey Keating + * gcc.dg/noncompile/920923-1.c: xstormy16 produces an extra error + message. + + * gcc.c-torture/execute/20011114-1.c: New testcase. + * gcc.c-torture/compile/20010327-1.c: Revert last change. * gcc.c-torture/compile/20011114-1.c: New test, exactly like the (before this change) version of 20010327-1.c. diff --git a/gcc/testsuite/gcc.c-torture/execute/20011114-1.c b/gcc/testsuite/gcc.c-torture/execute/20011114-1.c new file mode 100644 index 0000000..9746c1e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20011114-1.c @@ -0,0 +1,11 @@ +char foo(char bar[]) +{ + return bar[1]; +} +extern char foo(char *); +int main(void) +{ + if (foo("xy") != 'y') + abort (); + exit (0); +} diff --git a/gcc/testsuite/gcc.dg/noncompile/920923-1.c b/gcc/testsuite/gcc.dg/noncompile/920923-1.c index f0748e7..6193177 100644 --- a/gcc/testsuite/gcc.dg/noncompile/920923-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/920923-1.c @@ -115,7 +115,7 @@ init_mem() "mem_hash != (prec_t)0", 370, "b.c"), 0))); flush_hash(mem_hash, 32); - build_ptables(mem_base, 1024*(1<<13)); + build_ptables(mem_base, 1024*(1<<13)); /* { dg-bogus "integer overflow" "int smaller than 32 bits" { xfail "xstormy16-*-*" } } */ } struct tm { -- cgit v1.1