diff options
Diffstat (limited to 'gfsm/gfsm/src/libgfsm/tests/ptest.c')
-rw-r--r-- | gfsm/gfsm/src/libgfsm/tests/ptest.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gfsm/gfsm/src/libgfsm/tests/ptest.c b/gfsm/gfsm/src/libgfsm/tests/ptest.c deleted file mode 100644 index 44911cd..0000000 --- a/gfsm/gfsm/src/libgfsm/tests/ptest.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <glib.h> -#include <stdio.h> - -typedef struct _xstruc { - int x; - int y; -} xstruc; - -int main (void) { - xstruc xs = {42,24}; - xstruc *xsp = &xs; - void *vp = xsp; - char *s = NULL; - char *s2; - - printf ("&xs =%p ; xsp =%p ; vp =%p\n", &xs, xsp, vp); - printf ("&xs.x =%p ; &xs.y =%p\n", &xs.x, &xs.y); - printf ("&xsp->x=%p ; &xsp->y=%p\n", &xsp->x, &xsp->y); - printf ("(vp)->x=%p ; (vp)->y=%p\n", &((xstruc*)vp)->x, &((xstruc*)vp)->y); - - printf("\n"); - printf("s=%p ; s2=%p\n", s, g_strdup(s)); - - return 0; -} |