* gcc.c-torture/execute/980701-1.c: New test.
From-SVN: r20860
This commit is contained in:
parent
154f82c741
commit
506506fa41
2 changed files with 26 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jul 1 00:52:51 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/980701-1.c: New test.
|
||||
|
||||
Tue Jun 30 11:51:42 1998 Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-ka
|
||||
rlsruhe.de>
|
||||
|
||||
|
|
22
gcc/testsuite/gcc.c-torture/execute/980701-1.c
Normal file
22
gcc/testsuite/gcc.c-torture/execute/980701-1.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
ns_name_skip (unsigned char **x, unsigned char *y)
|
||||
{
|
||||
*x = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned char a[2];
|
||||
|
||||
int dn_skipname(unsigned char *ptr, unsigned char *eom) {
|
||||
unsigned char *saveptr = ptr;
|
||||
|
||||
if (ns_name_skip(&ptr, eom) == -1)
|
||||
return (-1);
|
||||
return (ptr - saveptr);
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
if (dn_skipname (&a[0], &a[1]) == 0)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Reference in a new issue