ppc64: Arguments to iselInt128Expr_to_32x4 should be initialized.
[valgrind.git] / memcheck / tests / solaris / scalar_zone_defunct.c
blob0ad8978c1e7e5c7daa93526018cfe857b251a8c3
1 /* Scalar test for new zone syscall subcodes available on Solaris 11. */
3 #include "scalar.h"
5 #include <sys/zone.h>
7 __attribute__((noinline))
8 static void sys_zone(void)
10 GO(SYS_zone, "(ZONE_LIST_DEFUNCT) 3s 1m");
11 SY(SYS_zone, x0 + ZONE_LIST_DEFUNCT, x0 + 1, x0 + 2); FAIL;
14 __attribute__((noinline))
15 static void sys_zone2(void)
17 uint_t numzones = x0 + 1;
19 GO(SYS_zone, "(ZONE_LIST_DEFUNCT) 2s 1m");
20 SY(SYS_zone, x0 + ZONE_LIST_DEFUNCT, x0 + 1, &numzones); SUCC;
23 __attribute__((noinline))
24 static void sys_zone3(void)
26 GO(SYS_zone, "(ZONE_GETATTR_DEFUNCT) 5s 2m");
27 SY(SYS_zone, x0 + ZONE_GETATTR_DEFUNCT, x0 + 1, x0, x0 + 2, x0 + 3);
28 FAIL;
31 int main(void)
33 /* Uninitialised, but we know px[0] is 0x0. */
34 long *px = malloc(sizeof(long));
35 x0 = px[0];
37 /* SYS_zone 227 */
38 sys_zone();
39 sys_zone2();
40 sys_zone3();
42 return 0;