* gcc.c-torture/compile/20000403-1.c: New test.

From-SVN: r32880
This commit is contained in:
Jeffrey A Law 2000-04-03 08:35:44 +00:00 committed by Jeff Law
parent bebac70175
commit 98e294810b
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Apr 3 02:35:34 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/20000403-1.c: New test.
2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
* gcc.c-torture/compile/981211-1.c: Move to...

View File

@ -0,0 +1,18 @@
struct utsname {
char sysname[32 ];
char version[32 ];
};
int
uname(name)
struct utsname *name;
{
int mib[2], rval;
long len;
char *p;
int oerrno;
if (sysctl(mib, 2, &name->sysname, &len, 0 , 0) == -1)
;
for (p = name->version; len--; ++p) {
*p = ' ';
}
}