xref: /illumos-gate/usr/src/test/util-tests/tests/ctf/test-array.c (revision 5f9772673df89384a3fa8f1cbfcccd8d331f83ff)
15bb525f4SRobert Mustacchi /*
25bb525f4SRobert Mustacchi  * This file and its contents are supplied under the terms of the
35bb525f4SRobert Mustacchi  * Common Development and Distribution License ("CDDL"), version 1.0.
45bb525f4SRobert Mustacchi  * You may only use this file in accordance with the terms of version
55bb525f4SRobert Mustacchi  * 1.0 of the CDDL.
65bb525f4SRobert Mustacchi  *
75bb525f4SRobert Mustacchi  * A full copy of the text of the CDDL should have accompanied this
85bb525f4SRobert Mustacchi  * source.  A copy of the CDDL is also available via the Internet at
95bb525f4SRobert Mustacchi  * http://www.illumos.org/license/CDDL.
105bb525f4SRobert Mustacchi  */
115bb525f4SRobert Mustacchi 
125bb525f4SRobert Mustacchi /*
13*5f977267SJason King  * Copyright 2020 Joyent, Inc.
145bb525f4SRobert Mustacchi  */
155bb525f4SRobert Mustacchi 
165bb525f4SRobert Mustacchi /*
175bb525f4SRobert Mustacchi  * A series of basic array tests with simple base types.
185bb525f4SRobert Mustacchi  */
195bb525f4SRobert Mustacchi 
205bb525f4SRobert Mustacchi int a[3];
215bb525f4SRobert Mustacchi double b[42];
225bb525f4SRobert Mustacchi const char *c[] = { "17" "31", "169" };
235bb525f4SRobert Mustacchi 
245bb525f4SRobert Mustacchi int d[4][5];
255bb525f4SRobert Mustacchi int e[4][5][6];
265bb525f4SRobert Mustacchi int f[4][5][6][7];
275bb525f4SRobert Mustacchi int g[4][5][6][7][8];
285bb525f4SRobert Mustacchi int h[4][5][6][7][8][9];
295bb525f4SRobert Mustacchi int i[4][5][6][7][8][9][10];
30*5f977267SJason King 
31*5f977267SJason King int empty[] = { };
32