S/390 Add zvector testcases.
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-compile-15.c
blob4ce7375a7c31ecc00f9e637103d218e8563530a6
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" } */
9 #include <stdio.h>
11 __attribute__ ((hotpatch(1,2)))
12 static void hp1(void)
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))
25 static void hp3(void)
27 printf("hello, world!\n");
30 __attribute__ ((hotpatch(1,2)))
31 __attribute__ ((always_inline))
32 static void hp4(void)
34 printf("hello, world!\n");
37 void main(void)
39 hp1();
40 hp2();
41 hp3();
42 hp4();