blob: f7970f1fe25b4f0a30accb9ba54c121c3acffbd7 [file] [log] [blame]
/* { 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;
}