blob: 132a6f2a5e93c168d7232044a1f1176cdea44fd5 [file] [log] [blame]
Fei Jie86ff93e2016-04-26 16:03:10 +08001#include "tests.h"
2#include <sys/syscall.h>
3
4#ifdef __NR_sync
5
6# include <stdio.h>
7# include <unistd.h>
8
9int
10main(void)
11{
12 printf("sync() = %ld\n", syscall(__NR_sync));
13
14 puts("+++ exited with 0 +++");
15 return 0;
16}
17
18#else
19
20SKIP_MAIN_UNDEFINED("__NR_sync")
21
22#endif