mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
21 lines
459 B
C
21 lines
459 B
C
/* Check exit_group(2) trivially. Newlib doesn't have it and the
|
|
pre-v32 glibc requires updated headers we'd have to check or adjust
|
|
for.
|
|
#notarget: cris-*-* *-*-elf
|
|
#output: exit_group\n
|
|
*/
|
|
#include <unistd.h>
|
|
#include <sys/syscall.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#ifndef EXITVAL
|
|
#define EXITVAL 0
|
|
#endif
|
|
int main (int argc, char **argv)
|
|
{
|
|
printf ("exit_group\n");
|
|
syscall (SYS_exit_group, EXITVAL);
|
|
printf ("failed\n");
|
|
abort ();
|
|
}
|