gcc/testsuite/gcc.misc-tests/gcov-pr114601.c
raw| 1 | /* PR gcov-profile/114601 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fcondition-coverage -finstrument-functions-once" } */ |
| 4 | |
| 5 | /* -finstrument-functions-once inserts a hidden conditional expression into |
| 6 | this function which otherwise has none. This caused a crash on looking up |
| 7 | the condition as the cond->expr map is not created unless it necessary. */ |
| 8 | void |
| 9 | empty (void) |
| 10 | { |
| 11 | } |