1/*
2 * Copyright 2014, NICTA
3 *
4 * This software may be distributed and modified according to the terms of
5 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
6 * See "LICENSE_BSD2.txt" for details.
7 *
8 * @TAG(NICTA_BSD)
9 */
10
11int array1[10];
12int array2[10];
13char array3[10];
14
15struct s {
16  int fld1;
17  int array[1];
18};
19
20struct t {
21  struct s v1, v2;
22};
23
24struct u {
25  char carray[3];
26  int iarray[3];
27  struct s v;
28};
29
30int f(struct u uval)
31{
32  return uval.carray[0] + uval.iarray[1] + uval.v.fld1;
33}
34