| 1 |
/* PR middle-end/114599 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-fcondition-coverage" } */ |
| 4 |
|
| 5 |
/* Check that a function with a condition inlined into a function without a |
| 6 |
conditional works. When inlining happens the condition -> expression |
| 7 |
mapping must be carried over. */ |
| 8 |
|
| 9 |
extern int type; |
| 10 |
|
| 11 |
void fn (void); |
| 12 |
|
| 13 |
__attribute__((always_inline)) |
| 14 |
inline void |
| 15 |
do_all_fn_doall_arg (void) |
| 16 |
{ |
| 17 |
if (type) |
| 18 |
fn (); |
| 19 |
} |
| 20 |
|
| 21 |
void |
| 22 |
do_all_fn_LHASH_DOALL_ARG_arg2 (void) |
| 23 |
{ |
| 24 |
do_all_fn_doall_arg (); |
| 25 |
} |