summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20090218-2_1.c
blob: 119fbe4a16bcb790322d6d6f4e86a414be0ec6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef struct {
} mem_attrs;
int main(void)
{
  return 0;
}
void *malloc(unsigned long size);
void *memcpy(void *dest, const void *src, unsigned long n);
static mem_attrs * get_mem_attrs () {
  void **slot;
  *slot = malloc (3);
  memcpy (*slot, 0, 3);
}
void set_mem_attributes () {
  get_mem_attrs ();
}
void set_mem_alias_set () {
  get_mem_attrs ();
}