diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20011114-1.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/920923-1.c | 2 |
3 files changed, 17 insertions, 1 deletions
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 <geoffk@redhat.com> + * 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 { |