25 lines · c
1#include <stdio.h>2 3inline void test1(int) __attribute__ ((always_inline));4inline void test2(int) __attribute__ ((always_inline));5 6// Called once from main with b==42 then called from test1 with b==24.7void test2(int b) {8 printf("test2(%d)\n", b); // first breakpoint9 {10 int c = b * 2;11 printf("c=%d\n", c); // second breakpoint12 }13}14 15void test1(int a) {16 printf("test1(%d)\n", a);17 test2(a + 1); // third breakpoint18}19 20int main(int argc) {21 test2(42);22 test1(23);23 return 0;24}25