GCC Code Coverage Report


Directory: .
File: main.cpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 100.0% 3 0 3
Functions: 100.0% 1 0 1
Branches: 50.0% 1 0 2
Conditions: 50.0% 1 0 2

Line Branch Condition Exec Source
1
2 inline int foo(int x) __attribute__((always_inline));
3 inline int foo(int x) {
4 1 return x ? 1 : 0;
5 }
6
7
1/2
✗ Branch 2 → 3 not taken.
✓ Branch 2 → 4 taken 1 time.
1/2
✗ True not covered.
1 int main() {
8 1 return foo(0);
9 }
10