Home | History | Annotate | Download | only in gdbserver_tests
      1 #include <stdio.h>
      2 
      3 static void another_func(char *msg)
      4 {
      5    printf ("another func called msg %s\n", msg);
      6 }
      7 
      8 int main (int argc, char *argv[])
      9 {
     10    printf("address of main %p\n", &main);
     11    printf("address of another_func %p\n", &another_func);
     12    another_func("called from main");
     13    return 0;
     14 }
     15