summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/gcov/gcov-14.C
blob: 8f8e3882d826064396458aa864eda02025128e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-fprofile-arcs -ftest-coverage -Ofast" } */
/* { dg-do run { target native } } */

#include <iostream>

void __attribute__ ((noinline))
  Out (std::ostream &out, double x)
{ out << x << std::endl; } /* count(1) */

int main ()
{
  Out (std::cout, 1.5); /* count(1) */
  return 0;
}

/* { dg-final { run-gcov gcov-14.C } } */
OpenPOWER on IntegriCloud