ppc64: Arguments to iselInt128Expr_to_32x4 should be initialized.
[valgrind.git] / memcheck / tests / x86-solaris / scalar_obsolete.c
blobecb68e02974b61103ae1ddf28a88cf99f7ae6a13
1 /* Test for syscalls that are available on illumos but are removed on
2 Solaris 11. This test is compiled only on illumos. */
4 #include "../solaris/scalar.h"
6 #include <sys/fcntl.h>
8 /* Helper functions. These are necessary if we've got two tests for a single
9 syscall. In that case, Memcheck can sometimes merge error messages. Doing
10 each test in its own function prevents that. */
11 __attribute__((noinline))
12 static void sys_open64(void)
14 GO(SYS_open64, "(2-args) 2s 1m");
15 SY(SYS_open64, x0, x0); FAIL;
18 __attribute__((noinline))
19 static void sys_open642(void)
21 GO(SYS_open64, "(3-args) 3s 1m");
22 SY(SYS_open64, x0, x0 | O_CREAT, x0); FAIL;
25 int main(void)
27 /* Uninitialised, but we know px[0] is 0x0. */
28 long *px = malloc(sizeof(long));
29 x0 = px[0];
31 /* SYS_stat64 215 */
32 GO(SYS_stat64, "2s 2m");
33 SY(SYS_stat64, x0, x0); FAIL;
35 /* SYS_lstat64 216 */
36 GO(SYS_lstat64, "2s 2m");
37 SY(SYS_lstat64, x0, x0); FAIL;
39 /* SYS_fstat64 217 */
40 GO(SYS_fstat64, "2s 1m");
41 SY(SYS_fstat64, x0, x0); FAIL;
43 /* SYS_open64 225 */
44 sys_open64();
45 sys_open642();
47 return 0;