1 /* Functional tests for the function hotpatching feature. */
4 /* { dg-options "-O3 -mzarch -mhotpatch --save-temps" } */
10 printf("hello, world!\n");
13 __attribute__ ((always_inline
))
14 void hp2(void) /* { dg-warning "always_inline function might not be inlinable" } */
16 printf("hello, world!\n");
17 } /* { dg-warning "function 'hp2' with the 'always_inline' attribute is not hotpatchable" } */
24 /* Check number of occurences of certain instructions. */
25 /* { dg-final { scan-assembler-not "nopr\t%r7" } } */
26 /* { dg-final { scan-assembler-not "nop\t0" } } */