blob: fa9680b2544df00531e723fe32182617cb7b3ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Test gcov weak ellision. */
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-require-weak "" } */
/* { dg-do run { target native } } */
/* { dg-additional-sources "gcovpart-13b.c" } */
int __attribute__ ((weak)) weak ()
{
return 1; /* count(-) { xfail *-*-* } */
}
int main ()
{
return weak (); /* count(1) */
}
/* { dg-final { run-gcov { -a gcov-13.c } { xfail *-*-* } } } */
/* { dg-final { run-gcov { -a gcovpart-13b.c } } } */
|