1 // This test checks that the cycle detection algorithm in llvm-cov is able to
2 // handle complex block graphs by skipping zero count cycles.
4 // RUN: mkdir -p %t.dir && cd %t.dir
5 // RUN: %clang --coverage %s -o %t -dumpdir ./
6 // RUN: rm -f gcov-complex-line.gcda && %run %t
7 // RUN: llvm-cov gcov -t gcov-complex-line.c | FileCheck %s
44 #define COMPLEX_LINE \
46 for (int i = 0; i < 100; ++i) \
52 // In the following line, the number of cycles in the block graph is at least
53 // 2^256, where 256 is the number of expansions of M_0.
54 COMPLEX_LINE
; // CHECK: 101: [[#@LINE]]: COMPLEX_LINE;