aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/rop-3.c
blob: d2ef3bf4badc6df880ae521317355d9a8d7661ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run { target { power10_hw } } } */
/* { dg-require-effective-target rop_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */

/* Verify that ROP-protect instructions execute correctly when a
   call is present.  */

void __attribute__((noipa)) foo ()
{
  asm ("");
}

int main ()
{
  foo ();
  return 0;
}