summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/hotpatch-24.c
blob: 1e475917100a3c3b732e61d299c1ac9487de7d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Functional tests for the function hotpatching feature.  */

/* { dg-do compile } */
/* { dg-options "-mzarch -mhotpatch=0,1 -falign-functions=2048" } */

#include <stdio.h>

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

/* Check number of occurences of certain instructions.  */
/* { dg-final { scan-assembler-not "alignment for hotpatch" } } */