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> main(void)7int 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 } 22