1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch" } */
6 /* { dg-prune-output "always_inline function might not be inlinable" } */
7 /* { dg-prune-output "called from here" } */
11 __attribute__ ((hotpatch(1,2)))
14 printf("hello, world!\n");
17 __attribute__ ((hotpatch(1,2)))
18 static inline void hp2(void)
20 printf("hello, world!\n");
23 __attribute__ ((hotpatch(0,0)))
24 __attribute__ ((always_inline
))
27 printf("hello, world!\n");
30 __attribute__ ((hotpatch(1,2)))
31 __attribute__ ((always_inline
))
34 printf("hello, world!\n");