• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: mkdir -p %t.d
2RUN: cd %t.d
3
4RUN: %clang -o %t.driver %S/../Inputs/instrprof-gcov-parallel.driver.c
5RUN: %clang --coverage -o %t.target %S/../Inputs/instrprof-gcov-parallel.target.c
6RUN: test -f instrprof-gcov-parallel.target.gcno
7
8RUN: rm -f instrprof-gcov-parallel.target.gcda
9RUN: %run %t.driver %t.target
10RUN: llvm-cov gcov instrprof-gcov-parallel.target.gcda
11RUN: FileCheck --input-file instrprof-gcov-parallel.target.c.gcov %s
12
13# Test if the .gcda file is correctly created from one of child processes
14# and counters of all processes are recorded correctly.
15# 707 = CHILDREN * COUNT
16CHECK: 707: {{[0-9]+}}: aaa++;
17