| Directory: | ./ |
|---|---|
| File: | main.cpp |
| Date: | 2020-09-29 20:03:49 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 5 | 5 | 100.0% |
| Branches: | 2 | 4 | 50.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <iostream> | ||
| 2 | |||
| 3 | #ifdef FOO | ||
| 4 | extern int foo(); | ||
| 5 | #endif | ||
| 6 | #ifdef BAR | ||
| 7 | extern int bar(); | ||
| 8 | #endif | ||
| 9 | |||
| 10 | 2 | int main(int argc, char* argv[]) { | |
| 11 | #ifdef FOO | ||
| 12 | 1 | foo(); | |
| 13 | #endif | ||
| 14 | #ifdef BAR | ||
| 15 | 1 | bar(); | |
| 16 | #endif | ||
| 17 | |||
| 18 | 2 | return 0; | |
| 19 |
2/4✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
|
6 | } |
| 20 |