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

/* Verify that __ROP_PROTECT__ is predefined for -mrop-protect.  */

int foo ()
{
#ifndef __ROP_PROTECT__
  __ROP_PROTECT__ macro is not defined when it should be
#endif
  return 0;
}