aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/gcov-pr114601.c
blob: 72248c8fd2538982985899fcdbe5a8a50877ace6 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR gcov-profile/114601 */
/* { dg-do compile } */
/* { dg-options "-fcondition-coverage -finstrument-functions-once" } */

/* -finstrument-functions-once inserts a hidden conditional expression into
   this function which otherwise has none.  This caused a crash on looking up
   the condition as the cond->expr map is not created unless it necessary.  */
void
empty (void)
{
}