summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr85620-2.c
blob: b2e680fa1fef2f388a46e23552f2cf7f1c200637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -fcf-protection" } */
/* { dg-final { scan-assembler-times {\mendbr} 1 } } */

struct ucontext;

extern int bar (struct ucontext *) __attribute__((__indirect_return__));

int
foo (struct ucontext *oucp)
{
  return bar (oucp);
}