Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / compat / union-check.h
blobb5157814d58225ff30aec615a7d5bbfc81f74777
1 /* Function definitions that are used by multiple tests. */
3 #define CHECK_CHAR(TYPE) \
4 void check##TYPE (TYPE p, int i) \
5 { if (p.c != (char)i) DEBUG_CHECK }
7 CHECK_CHAR(Ucs)
8 CHECK_CHAR(Uci)
9 CHECK_CHAR(Ucl)
10 CHECK_CHAR(Ucll)
13 #define CHECK_SHORT(TYPE) \
14 void check##TYPE (TYPE p, int i) \
15 { if (p.s != (short)i) DEBUG_CHECK }
17 CHECK_SHORT(Usi)
18 CHECK_SHORT(Usl)
19 CHECK_SHORT(Usll)
22 #define CHECK_INT(TYPE) \
23 void check##TYPE (TYPE p, int i) \
24 { if (p.i != i) DEBUG_CHECK }
26 CHECK_INT(Uil)
27 CHECK_INT(Uill)
30 #define CHECK_LONG(TYPE) \
31 void check##TYPE (TYPE p, int i) \
32 { if (p.l != (long)i) DEBUG_CHECK }
34 CHECK_LONG(Ulll)