1 /* Test for getrandom syscall which is available on Solaris 11. */ 2 3 #include "scalar.h" 4 5 int 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_getrandom 143 */ 12 GO(SYS_getrandom, "(getrandom) 3s 1m"); 13 SY(SYS_getrandom, x0 + 1, x0 + 1, x0); FAIL; 14 15 return 0; 16 } 17 18