OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [uname1.c] - Blame information for rev 227

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 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.