Skip to content
Snippets Groups Projects
Commit 2e1566c6 authored by Hans-Peter Nilsson's avatar Hans-Peter Nilsson
Browse files

* sim/cris/c/exitg1.c, sim/cris/c/exitg2.c: New tests.

parent e56b67ed
No related branches found
No related tags found
No related merge requests found
2009-01-03 Hans-Peter Nilsson <hp@axis.com>
* sim/cris/c/exitg1.c, sim/cris/c/exitg2.c: New tests.
* sim/cris/c/uname1.c: New test.
* sim/cris/c/mmap1.c (MMAP_FLAGS): Default-define to
MAP_PRIVATE and use this macro in the mmap call.
......
/* 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 ();
}
/* Check exit_group(2) trivially with non-zero status.
#notarget: cris-*-* *-*-elf
#output: exit_group\n
#xerror:
*/
#define EXITVAL 1
#include "exitg1.c"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment