Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/compat/small-struct-check.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Function definitions that are used by multiple tests. */ | |
2 | |
3 void checkSc (Sc x, int i) { if (x.c != (char)i) DEBUG_CHECK } | |
4 void checkSs (Ss x, int i) { if (x.s != i) DEBUG_CHECK } | |
5 void checkSi (Si x, int i) { if (x.i != i) DEBUG_CHECK } | |
6 void checkSsc (Ssc x, int i) | |
7 { if (x.s != i || x.c != (char)i+1) DEBUG_CHECK } | |
8 void checkScs (Scs x, int i) | |
9 { if (x.c != (char)i || x.s != i+1) DEBUG_CHECK } | |
10 void checkSsi (Ssi x, int i) | |
11 { if (x.s != i || x.i != i+1) DEBUG_CHECK } | |
12 void checkSis (Sis x, int i) | |
13 { if (x.i != i || x.s != i+1) DEBUG_CHECK } | |
14 void checkSic (Sic x, int i) | |
15 { if (x.i != i || x.c != (char)i+1) DEBUG_CHECK } | |
16 void checkSci (Sci x, int i) | |
17 { if (x.c != (char)i || x.i != i+1) DEBUG_CHECK } | |
18 void checkScsi (Scsi x, int i) | |
19 { if (x.c != (char)i || x.s != i+1 || x.i != i+2) DEBUG_CHECK } | |
20 void checkScis (Scis x, int i) | |
21 { if (x.c != (char)i || x.i != i+1 || x.s != i+2) DEBUG_CHECK } | |
22 void checkSsci (Ssci x, int i) | |
23 { if (x.s != i || x.c != (char)i+1 || x.i != i+2) DEBUG_CHECK } | |
24 void checkSsic (Ssic x, int i) | |
25 { if (x.s != i || x.i != i+1 || x.c != (char)i+2) DEBUG_CHECK } | |
26 void checkSisc (Sisc x, int i) | |
27 { if (x.i != i || x.s != i+1 || x.c != (char)i+2) DEBUG_CHECK } | |
28 void checkSics (Sics x, int i) | |
29 { if (x.i != i || x.c != (char)i+1 || x.s != i+2) DEBUG_CHECK } |