summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-17.c
blob: 66f50f27477a1cf20c22ad8fd998cbf89b7e455a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* 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" } } */