]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/gcov/pr86109.C
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / gcov / pr86109.C
CommitLineData
f2db4602
ML
1
2/* { dg-options "-fprofile-arcs -ftest-coverage -std=c++11" } */
3/* { dg-do run { target native } } */
4
5int main()
6{
7 auto partially_uncovered_lambda = [](int i) { /* count(1) */
8 if (i > 10) /* count(1) */
9 return 0; /* count(1) */
10 return 1; /* count(#####) */
11 };
12
13 return partially_uncovered_lambda(20); /* count(1) */
14}
15
16/* { dg-final { run-gcov pr86109.C } } */