* gcc.c-torture/compile/20000403-1.c: New test.
From-SVN: r32880
This commit is contained in:
parent
bebac70175
commit
98e294810b
@ -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...
|
||||
|
18
gcc/testsuite/gcc.c-torture/compile/20000403-1.c
Normal file
18
gcc/testsuite/gcc.c-torture/compile/20000403-1.c
Normal 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 = ' ';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user