1/* { dg-options "-fprofile-arcs -ftest-coverage -Ofast" } */ 2/* { dg-do run { target native } } */ 3 4#include <iostream> 5 6void __attribute__ ((noinline)) 7 Out (std::ostream &out, double x) 8{ out << x << std::endl; } /* count(1) */ 9 10int main () 11{ 12 Out (std::cout, 1.5); /* count(1) */ 13 return 0; 14} 15 16/* { dg-final { run-gcov gcov-14.C } } */ 17/* run-gcov cleanups up after itself, but doesn't find all created gcov files. 18 We could try to grep for ^Created in the exec log, but since there's only one 19 testcase where we create these extra gcov files, do a local cleanup for 20 now. */ 21/* { dg-final { remote_file target delete iostream.gcov ostream.gcov locale_facets.h.gcov } } */ 22