aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr113359-3_1.c
blob: 25a6a0a3f4ea50753b22f2a1f52a5576faa26a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#define CI 0xdeadbeef
#define CL1 0xdeaddead1234beef
#define CL2 0xdead1234deadbeef

struct AA
{
  unsigned int ax;
  unsigned long ay;
  unsigned long az;
};

struct SA
{
  int p;
  struct AA arr[2];
};

struct ZA
{
  struct SA s;
  short q;
};

struct AB
{
  unsigned long bx;
  unsigned int by;
  unsigned long bz;
};

struct SB
{
  int p;
  struct AB arr[2];
};

struct ZB
{
  struct SB s;
  short q;
};


void __attribute__((noinline))
getb (struct SB *d, struct ZB *p)
{
  struct SB tmp = p->s;
  *d = tmp;
}