blob: 1c97c35d8c1e3d2aad97d124d3be8865b56d0338 [file] [log] [blame]
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-do run { target native } } */
class C {
public:
C()
{
i = 0;
}
~C() {}
void seti (int j)
{
if (j > 0)
i = j;
else
i = 0;
}
private:
int i;
};
void foo()
{
C c;
c.seti (1);
}
int main()
{
foo();
}
/* { dg-final { run-gcov { -b gcov-8.C } } } */