diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-10-11 17:52:47 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-10-11 17:52:47 +0000 |
commit | d0b43a40b5395e51595342a2b41dad2b44cf9a09 (patch) | |
tree | 6f0b7107add24f43c62a0c41fd8cfca5c09bf335 /gcc | |
parent | a3cfd96a4408bb87795b62c849b819952c4b2ed0 (diff) | |
download | gcc-d0b43a40b5395e51595342a2b41dad2b44cf9a09.zip gcc-d0b43a40b5395e51595342a2b41dad2b44cf9a09.tar.gz gcc-d0b43a40b5395e51595342a2b41dad2b44cf9a09.tar.bz2 |
20001011-1.c: New testcase.
* gcc.c-torture/execute/20001011-1.c: New testcase.
Testcase provided by Zack Weinberg <zackw@stanford.edu>.
From-SVN: r36839
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20001011-1.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6525c54..1f15786 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-10-11 Geoff Keating <geoffk@cygnus.com> + + * gcc.c-torture/execute/20001011-1.c: New testcase. + Testcase provided by Zack Weinberg <zackw@stanford.edu>. + 2000-10-10 Jakub Jelinek <jakub@redhat.com> * gcc.dg/991209-1.c (stack_ptr): Use __asm, not asm, so that -ansi diff --git a/gcc/testsuite/gcc.c-torture/execute/20001011-1.c b/gcc/testsuite/gcc.c-torture/execute/20001011-1.c new file mode 100644 index 0000000..ffdcb9f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20001011-1.c @@ -0,0 +1,14 @@ +extern void abort(void); +extern int strcmp(const char *, const char *); + +int foo(const char *a) +{ + return strcmp(a, "main"); +} + +int main(void) +{ + if(foo(__FUNCTION__)) + abort(); + return 0; +} |