2015-02-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-20.c
blob09ef5caaea37e6c9e79c11a6ffd49861a0492106
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch" } */
6 #include <stdio.h>
8 /* { dg-prune-output "always_inline function might not be inlinable" } */
9 __attribute__ ((hotpatch(1,2)))
10 __attribute__ ((always_inline))
11 static void hp2(void)
13 printf("hello, world!\n");
16 /* { dg-prune-output "called from here" } */
17 void hp1(void)
19 hp2();