projects
/
external
/
binutils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
binutils/
[external/binutils.git]
/
sim
/
testsuite
/
sim
/
cris
/
c
/
uname1.c
1
/* Check that the right machine name appears in the uname result.
2
#notarget: *-*-elf
3
*/
4
#include <sys/utsname.h>
5
#include <stdio.h>
6
#include <stdlib.h>
7
int main (void)
8
{
9
struct utsname buf;
10
if (uname (&buf) != 0
11
|| strcmp (buf.machine,
12
#ifdef __arch_v32
13
"crisv32"
14
#else
15
"cris"
16
#endif
17
) != 0)
18
abort ();
19
printf ("pass\n");
20
exit (0);
21
}