aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gcov/pr84548.C
blob: 3b60b90e2a260af777784a14531bff010a1fc7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR gcov-profile/84548
// { dg-options "-fprofile-arcs -ftest-coverage" }
// { dg-do run { target native } }
// TODO: add support for groups to gcov.exp script

struct A { static int foo () { return 1; }; static int bar () {
  int x;
  return 2; } };

int main()
{
  int a = A::foo () + A::bar ();
  if (a != 3)
    return 1;

  return 0;
}

// { dg-final { run-gcov pr84548.C } }