summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr81842-5.c
blob: b9acf7a2e07c2bb90ad09cbe888144483e28b6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-fcf-protection -mcet" } */

#include <ucontext.h>

void *p1 = getcontext;
void *p2 = setcontext;
void *p3 = swapcontext;
void *p4 = makecontext;
/* { dg-error "'getcontext' cannot be used with -mshstk" "" { target *-*-* } 0 } */
/* { dg-error "'setcontext' cannot be used with -mshstk" "" { target *-*-* } 0 } */
/* { dg-error "'swapcontext' cannot be used with -mshstk" "" { target *-*-* } 0 } */
/* { dg-error "'makecontext' cannot be used with -mshstk" "" { target *-*-* } 0 } */