summaryrefslogtreecommitdiff
path: root/gdbserver_tests/main_pic.c
blob: e452b307571c925d34f92aec17a3737b9bdefb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

static void another_func(char *msg)
{
   printf ("another func called msg %s\n", msg);
}

int main (int argc, char *argv[])
{
   printf("address of main %p\n", &main);
   printf("address of another_func %p\n", &another_func);
   another_func("called from main");
   return 0;
}