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:
parent
a3cfd96a44
commit
d0b43a40b5
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue