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 array[10][16]; 12 13struct s { 14 int array[7][3]; 15}; 16 17 18 19int f(int i, int j) 20{ 21 return array[i][j]; 22} 23 24struct s global1, global2; 25 26int g1(int *iptr) 27{ 28 return iptr? *iptr : 0; 29} 30 31int g2(struct s* sptr, int i, int j) 32{ 33 return sptr->array[i][j]; 34} 35 36int h1(void) 37{ 38 return g1(&global1.array[0][1]); 39} 40 41int h2(int i, int j) 42{ 43 return g2(&global2, i, j); 44} 45 46