Julian Seward ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00

16 lines
364 B
C

#include <inttypes.h>
#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 %#" PRIxPTR "\n", (uintptr_t) main);
printf("address of another_func %#" PRIxPTR "\n", (uintptr_t) another_func);
another_func("called from main");
return 0;
}