blob: 202b1aa18889675a687f8eccfa4aa678a5c9e08c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-fcf-protection -mcet -mno-check-ucontext-functions" } */
#include <ucontext.h>
int
func1 (ucontext_t *ucp)
{
return getcontext (ucp);
}
int
func2 (const ucontext_t *ucp)
{
return setcontext (ucp);
}
int
func3 (ucontext_t *oucp, const ucontext_t *ucp)
{
return swapcontext (oucp, ucp);
}
void
func4 (ucontext_t *ucp, void (*func) (void))
{
makecontext (ucp, func, 0);
}
|