* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-compile-15.c
blob12e04ea33e6f88d39c05fc1257c88eee61b7000e
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch" } */
6 #include <stdio.h>
8 __attribute__ ((hotpatch(1,2)))
9 static void hp1(void)
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");
34 void main(void)
36 hp1();
37 hp2();
38 hp3();
39 hp4();