OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [small-struct-check.h] - Blame information for rev 325

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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 }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.