1 /* Check exit_group(2) trivially.  Newlib doesn't have it and the
2    pre-v32 glibc requires updated headers we'd have to check or adjust
3    for.
4 #notarget: cris-*-* *-*-elf
5 #output: exit_group\n
6 */
7 #include <unistd.h>
8 #include <sys/syscall.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 #ifndef EXITVAL
12 #define EXITVAL 0
13 #endif
main(int argc,char ** argv)14 int main (int argc, char **argv)
15 {
16   printf ("exit_group\n");
17   syscall (SYS_exit_group, EXITVAL);
18   printf ("failed\n");
19   abort ();
20 }
21