summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/dilayout.c
blob: 4bba661c0a4b1f93dd7489840bba35058cfb0e0c (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
struct ii
{
  int a;
  int b;
};

struct foo
{
  int a;
  struct ii ab;
  int b;
};

struct ii
foo (int *p, struct foo a)
{
  p[0] = a.a;
  p[1] = a.ab.a;
  p[2] = a.ab.b;
  p[3] = a.b;
  return a.ab;
}

str (struct ii ab, struct ii *p)
{
  *p = ab;
}

ll (long long ab, long long *p)
{
  *p = ab;
}