blob: 222ae5a60530c5d632640150cdb4537eedb5e46b [file] [log] [blame]
/* Functional tests for the function hotpatching feature. */
/* { dg-do compile } */
/* { dg-options "-mzarch" } */
#include <stdio.h>
__attribute__ ((hotpatch(1,2)))
__attribute__ ((always_inline))
static inline void hp2(void)
{
printf("hello, world!\n");
}
void hp1(void)
{
hp2();
}