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 x = 3, y = 4;
12
13int array[] = {1,2,3,4,};
14extern int a2[];
15
16int *z = &y;
17int u = sizeof(y);
18
19enum { A = 3, B, C, D };
20
21struct s {
22  int data1;
23  char data2;
24} *sptr = (void *)0xdeadbeef;
25
26typedef struct s s_t;
27
28int a2[] = {B,A,C,D};
29
30s_t sval = {.data2 = 3}, svalprime;
31
32int f(int i)
33{
34  x += i + y + sptr->data1 + array[i] + *z;
35  return x;
36}
37
38int g(void)
39{
40  return sval.data1 + svalprime.data2;
41}
42
43
44