brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · c7ac309 Raw
30 lines · c
1#include <stdio.h>2 3typedef int (*debug_callee) (int);4 5extern int no_debug_caller (int, debug_callee);6 7int8called_from_nodebug_actual(int some_value)9{10  int return_value = 0;11  return_value  = printf ("Length: %d.\n", some_value);12  return return_value; // Stop here and step out of me13}14 15int16called_from_nodebug(int some_value)17{18  int intermediate_return_value = 0;19  intermediate_return_value = called_from_nodebug_actual(some_value);20  return intermediate_return_value;21}22 23int24main()25{26  int return_value = no_debug_caller(5, called_from_nodebug);27  printf ("I got: %d.\n", return_value);28  return 0;29}30