aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/s390/hotpatch-compile-3.c
blob: e0c7f6f52c193a1b0e3931f686180354027c3105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Functional tests for the function hotpatching feature.  */

/* { dg-do run } */
/* { dg-options "-O3 -mzarch -mhotpatch=1" } */

#include <stdio.h>

void hp1(void)
{
  printf("hello, world!\n");
}

inline void hp2(void)
{
  printf("hello, world!\n");
}

__attribute__ ((always_inline))
void hp3(void) /* { dg-warning "always_inline function might not be inlinable" } */
{
  printf("hello, world!\n");
} /* { dg-warning "function 'hp3' with the 'always_inline' attribute is not hotpatchable" } */

int main (void)
{
  return 0;
}