blob: 7a4cd763dc0c6ea2ad4b17ca3e351249fb6142fb [file] [log] [blame]
sewardj8eb8bab2015-07-21 14:44:28 +00001/* Test for frealpathat syscall which is available on Solaris 11.1. */
2
3#include "scalar.h"
4
5int main(void)
6{
7 /* Uninitialised, but we know px[0] is 0x0. */
8 long *px = malloc(sizeof(long));
9 x0 = px[0];
10
11 /* SYS_frealpathat 30 */
12 GO(SYS_frealpathat, "4s 2m");
13 SY(SYS_frealpathat, x0 - 1, x0 + 1, x0 + 2, x0 + 3); FAIL;
14
15 return 0;
16}
17