aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr110729.c
blob: 29b8c1c1f4394d7abd1d547d6ced0d78b713fc3c (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
28
29
/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
/* { dg-require-effective-target o_flag_in_section } */
/* { dg-options "-ffunction-sections -fpatchable-function-entry=2" } */
/* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */

/* Verify there are three different link_to symbols for three
   .section __patchable_function_entries respectively.  */

int
f ()
{
  return 1;
}

int
g ()
{
  return 2;
}

int
h ()
{
  return 3;
}

/* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE0} 1 } }  */
/* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE1} 1 } }  */
/* { dg-final { scan-assembler-times {.section[\t ]*__patchable_function_entries,.*,\.LPFE2} 1 } }  */