1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */
3 /* { dg-require-effective-target rop_ok } */
4
5 /* Verify that no ROP-protect instructions are inserted when no
6 call is present. */
7
8
9 int bar ()
10 {
11 return 5;
12 }
13
14 /* { dg-final { scan-assembler-not {\mhashst\M} } } */
15 /* { dg-final { scan-assembler-not {\mhashchk\M} } } */