Files

20 lines
512 B
C

int debug_b_base = 5;
int debug_b_sub(void) {
int diff = debug_b_base - 2;
return diff * 3;
}
int debug_b_mul(void) {
int factor = debug_b_base + 1;
return factor * factor;
}
/* M8.2 multi-TU debug gate, second translation unit.
*
* debug_b_sub returns 9 and debug_b_mul returns 36. The TU's `.text` is
* concatenated after debug-a.c's, so its functions and DWARF addresses are at
* nonzero text offsets; dwarf-multi.sh asserts the rehomed CU/section bases
* and the linked low PCs.
*/