summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-17.c
blob: f8ff794215cefbe795707240e732dd6613008aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test visibility is copied */

/* { dg-options "-fprofile-arcs" } */
/* { dg-require-visibility "" } */
/* { dg-require-weak "" } */

void __attribute__ ((visibility ("hidden"), weak)) Foo ()
{
}

/* { dg-final { scan-assembler "\\.hidden\t__gcov__Foo" { target { ! *-*-darwin*  } } } } */
/* { dg-final { scan-assembler "\\.private_extern ___gcov__Foo" { target *-*-darwin* } } } */