blob: e73a510b4d6bd37d6fec7fc8607e4fd1398e7ff9 [file] [log] [blame]
/* Functional tests for the function hotpatching feature. */
/* { dg-do run } */
/* { dg-options "-O3 -mzarch -mhotpatch --save-temps" } */
#include <stdio.h>
__attribute__ ((hotpatch(0)))
void hp1(void)
{
printf("hello, world!\n");
}
int main (void)
{
return 0;
}
/* Check number of occurences of certain instructions. */
/* { dg-final { scan-assembler-not "nopr\t%r7" } } */
/* { dg-final { scan-assembler-times "nop\t0" 1 } } */