(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
patchable_function_entry-decl.c
       1  /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
       2  /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
       3  /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
       4  /* { dg-final { scan-assembler-times "nop|NOP|SWYM" 2 { target { ! { alpha*-*-* riscv*-*-* } } } } } */
       5  /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */
       6  /* { dg-final { scan-assembler-times "nop\n" 2 { target riscv*-*-* } } } */
       7  
       8  extern int a;
       9  
      10  /* Respect overriding attributes in the declaration.  */
      11  int f3 (void) __attribute__((patchable_function_entry(2)));
      12  
      13  /* F3 should now get 2 NOPs.  */
      14  int
      15  __attribute__((noinline))
      16  f3 (void)
      17  {
      18    return 5*a;
      19  }