1 /* Functional tests for the function hotpatching feature. */ 2 3 /* { dg-do run } */ 4 /* { dg-options "-O3 -mzarch -mhotpatch -mno-hotpatch --save-temps" } */ 5 6 #include <stdio.h> 7 hp1(void)8void hp1(void) 9 { 10 printf("hello, world!\n"); 11 } 12 main(void)13int main (void) 14 { 15 return 0; 16 } 17 18 /* Check number of occurences of certain instructions. */ 19 /* { dg-final { scan-assembler-not "nopr\t%r7" } } */ 20 /* { dg-final { scan-assembler-not "nop\t0" } } */ 21