blob: 80faa9b3f7b420e36058ef93996877ff7ef817a2 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */
/* { dg-require-effective-target rop_ok } */
/* Verify that no ROP-protect instructions are inserted when no
call is present. */
int bar ()
{
return 5;
}
/* { dg-final { scan-assembler-not {\mhashst\M} } } */
/* { dg-final { scan-assembler-not {\mhashchk\M} } } */