blob: 884e3c55fadef10b54fcadf610398ccd48f44b86 [file] [log] [blame]
Dmitry V. Levin9c8654e2016-01-04 23:34:00 +00001#include "tests.h"
Elvira Khabirova10020ae2015-07-17 04:45:25 +03002#include <signal.h>
3
4int
5main(void)
6{
7 stack_t ss = {
8 .ss_sp = (void *) 0xbaadf00d,
9 .ss_flags = SS_DISABLE,
10 .ss_size = 0xdeadbeef
11 };
Dmitry V. Levin9c8654e2016-01-04 23:34:00 +000012 if (sigaltstack(&ss, (stack_t *) 0))
13 perror_msg_and_skip("sigaltstack");
14 return 0;
Elvira Khabirova10020ae2015-07-17 04:45:25 +030015}