OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [uname1.c] - Blame information for rev 341

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.