diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-23 19:30:44 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-23 19:30:44 +0000 |
commit | f7d54b2495ea7bf7d2a143b05cf878d0b0f0bf31 (patch) | |
tree | bcec6f041cb5086bd521d404abf56a4a2c717f0e /gcc/testsuite/gcc.c-torture/execute/bcp-1.c | |
parent | a8fb076f23ea65fc2052611ea56fe40c52419ce4 (diff) | |
download | gcc-f7d54b2495ea7bf7d2a143b05cf878d0b0f0bf31.tar.gz |
gcc/testsuite:
* c-torture/execute/bcp-1.c: Replace abort in arg of
__builtin_constant_p with a generic external function.
* gcc.dg/20000108-1.c, gcc.dg/980211-1.c, gcc.dg/980414-1.c,
gcc.dg/990119-1.c, gcc.dg/990409.c, gcc.dg/990424-1.c,
gcc.dg/991230-1.c, gcc.dg/clobbers.c, gcc.dg/lineno.c,
gcc.dg/noreturn-1.c, gcc.dg/trigraphs.c, gcc.dg/uninit-4.c:
Prototype abort and/or exit.
* gcc.dg/990407-1.c, gcc.dg/strpaste.c,
gcc.dg/special/alias-1.c, gcc.dg/special/gcsec-1.c,
gcc.dg/special/weak-1.c, gcc.dg/special/weak-2.c,
gcc.dg/special/wkali-1.c, gcc.dg/special/wkali-2.c: Include stdlib.h.
libio/tests:
* tfformat.c: Include stdlib.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/bcp-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/bcp-1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c index 38b1d3e8e93..fcb65cb321e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/bcp-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/bcp-1.c @@ -1,4 +1,5 @@ int global; +int func(void); /* These must fail. */ int bad0(void) { return __builtin_constant_p(global); } @@ -8,7 +9,7 @@ inline int bad3(int x) { return __builtin_constant_p(x); } inline int bad4(const char *x) { return __builtin_constant_p(x); } int bad5(void) { return bad2(1); } inline int bad6(int x) { return __builtin_constant_p(x+1); } -int bad7(void) { return __builtin_constant_p(abort()); } +int bad7(void) { return __builtin_constant_p(func()); } int bad8(void) { char buf[10]; return __builtin_constant_p(buf); } int bad9(const char *x) { return __builtin_constant_p(x[123456]); } int bad10(void) { return __builtin_constant_p(&global); } |