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
This commit is contained in:
Geoff Keating 2000-10-11 17:52:47 +00:00 committed by Geoffrey Keating
parent a3cfd96a44
commit d0b43a40b5
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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;
}