gcc/
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / gcc.target / s390 / hotpatch-compile-3.c
blobe0c7f6f52c193a1b0e3931f686180354027c3105
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do run } */
4 /* { dg-options "-O3 -mzarch -mhotpatch=1" } */
6 #include <stdio.h>
8 void hp1(void)
10 printf("hello, world!\n");
13 inline void hp2(void)
15 printf("hello, world!\n");
18 __attribute__ ((always_inline))
19 void hp3(void) /* { dg-warning "always_inline function might not be inlinable" } */
21 printf("hello, world!\n");
22 } /* { dg-warning "function 'hp3' with the 'always_inline' attribute is not hotpatchable" } */
24 int main (void)
26 return 0;