| 1 |
/* { dg-options "-fcondition-coverage -ftest-coverage -fprofile-update=atomic" } */ |
| 2 |
/* { dg-do run { target native } } */ |
| 3 |
/* { dg-require-effective-target profile_update_atomic } */ |
| 4 |
|
| 5 |
/* Some side effect to stop branches from being pruned */ |
| 6 |
int x = 0; |
| 7 |
|
| 8 |
void |
| 9 |
conditions_atomic001 (int a, int b) |
| 10 |
{ |
| 11 |
if (a || b) /* conditions(1/4) true(0) false(0 1) */ |
| 12 |
/* conditions(end) */ |
| 13 |
x = 1; |
| 14 |
else |
| 15 |
x = 2; |
| 16 |
} |
| 17 |
|
| 18 |
int main () |
| 19 |
{ |
| 20 |
conditions_atomic001 (0, 1); |
| 21 |
} |
| 22 |
|
| 23 |
/* { dg-final { run-gcov conditions { --conditions gcov-20.c } } } */ |