aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/pass32-frag.c
blob: 83f121d4fa2871096af40669c392d40018e51f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct foo { char z[10]; };

char * get_z (struct foo *this)
{
  return & this->z[0] /* the `this' pointer is not dereferenced! */;
}

int main ()
{
struct foo k;
char *n = get_z (& k);
srand ((int)(uintptr_t) n); /* use the pointer value */
return 0;
}