1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch" } */
8 __attribute__ ((hotpatch(1,2)))
11 printf("hello, world!\n");
14 __attribute__ ((hotpatch(1,2)))
15 static inline void hp2(void)
17 printf("hello, world!\n");
20 __attribute__ ((hotpatch(0,0)))
21 __attribute__ ((always_inline
))
22 static inline void hp3(void)
24 printf("hello, world!\n");
27 __attribute__ ((hotpatch(1,2)))
28 __attribute__ ((always_inline
))
29 static inline void hp4(void)
31 printf("hello, world!\n");