2 #include "tests/malloc.h"
9 void maybe_fault ( int delta
)
11 char* x
= memalign16(32);
15 : /*out*/ : /*in*/ "r"(x
+delta
) : /*trash*/"xmm7" );
19 void handler ( int signo
)
21 assert(signo
== SIGSEGV
);
22 fprintf(stderr
, "three\n");
28 signal(SIGSEGV
, handler
);
29 fprintf(stderr
, "you should see: \"one\\ntwo\\nthree\\n\"\n");
30 fprintf(stderr
, "one\n");
32 fprintf(stderr
, "two\n");
34 fprintf(stderr
, "test failed! you shouldn't see this\n");