xref: /illumos-gate/usr/src/test/util-tests/tests/ctf/test-int.c (revision 5bb525f494c825f138113d51f2ba7acf185093f3)
1*5bb525f4SRobert Mustacchi /*
2*5bb525f4SRobert Mustacchi  * This file and its contents are supplied under the terms of the
3*5bb525f4SRobert Mustacchi  * Common Development and Distribution License ("CDDL"), version 1.0.
4*5bb525f4SRobert Mustacchi  * You may only use this file in accordance with the terms of version
5*5bb525f4SRobert Mustacchi  * 1.0 of the CDDL.
6*5bb525f4SRobert Mustacchi  *
7*5bb525f4SRobert Mustacchi  * A full copy of the text of the CDDL should have accompanied this
8*5bb525f4SRobert Mustacchi  * source.  A copy of the CDDL is also available via the Internet at
9*5bb525f4SRobert Mustacchi  * http://www.illumos.org/license/CDDL.
10*5bb525f4SRobert Mustacchi  */
11*5bb525f4SRobert Mustacchi 
12*5bb525f4SRobert Mustacchi /*
13*5bb525f4SRobert Mustacchi  * Copyright (c) 2019, Joyent, Inc.
14*5bb525f4SRobert Mustacchi  */
15*5bb525f4SRobert Mustacchi 
16*5bb525f4SRobert Mustacchi /*
17*5bb525f4SRobert Mustacchi  * Test basic integer types. Note that signed types are considered the same as
18*5bb525f4SRobert Mustacchi  * the base type.
19*5bb525f4SRobert Mustacchi  */
20*5bb525f4SRobert Mustacchi 
21*5bb525f4SRobert Mustacchi char a;
22*5bb525f4SRobert Mustacchi unsigned char b;
23*5bb525f4SRobert Mustacchi 
24*5bb525f4SRobert Mustacchi short d;
25*5bb525f4SRobert Mustacchi unsigned short e;
26*5bb525f4SRobert Mustacchi 
27*5bb525f4SRobert Mustacchi int g;
28*5bb525f4SRobert Mustacchi unsigned int h;
29*5bb525f4SRobert Mustacchi 
30*5bb525f4SRobert Mustacchi long j;
31*5bb525f4SRobert Mustacchi unsigned long k;
32*5bb525f4SRobert Mustacchi 
33*5bb525f4SRobert Mustacchi long long m;
34*5bb525f4SRobert Mustacchi unsigned long long n;
35