diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2001-11-15 03:55:26 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2001-11-15 03:55:26 +0000 |
commit | 7042d51057a0e81d164413b0b839bbd97b34610d (patch) | |
tree | 88c174ab46a776fe8f3db2cd187e4153e98aab96 /gcc/testsuite | |
parent | 902197eb4fbf3b936300d6df647e9d978d32ca28 (diff) | |
download | gcc-7042d51057a0e81d164413b0b839bbd97b34610d.zip gcc-7042d51057a0e81d164413b0b839bbd97b34610d.tar.gz gcc-7042d51057a0e81d164413b0b839bbd97b34610d.tar.bz2 |
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
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 { |