scalar-by-value-3_x.c, scalar-by-value-3_y.c,
scalar-by-value-4_x.c, scalar-by-value-4_y.c,
scalar-return-1_x.c, scalar-return-2_y.c,
scalar-return-3_x.c, scalar-return-3_y.c,
scalar-return-4_x.c, scalar-return-4_y.c,
struct-align-1.h, struct-align-1_x.c,
struct-align-1_y.c, struct-align-2.h,
struct-align-2_x.c, struct-align-2_y.c,
struct-by-value-10_y.c, struct-by-value-11_x.c,
struct-by-value-11_y.c, struct-by-value-12_x.c,
struct-by-value-12_y.c, struct-by-value-13_x.c,
struct-by-value-13_y.c, struct-by-value-14_x.c,
struct-by-value-14_y.c, struct-by-value-15_x.c,
struct-by-value-15_y.c, struct-by-value-16_y.c,
struct-by-value-17_y.c, struct-by-value-18_y.c,
struct-by-value-19_y.c, struct-by-value-1_x.c,
struct-by-value-1_y.c, struct-by-value-20_y.c,
struct-by-value-2_x.c, struct-by-value-2_y.c,
struct-by-value-3_y.c, struct-by-value-4_x.c,
struct-by-value-4_y.c, struct-by-value-5_y.c,
struct-by-value-6_y.c, struct-by-value-7_y.c
struct-by-value-8_x.c, struct-by-value-8_y.c
struct-by-value-9_x.c, struct-by-value-9_y.c
struct-return-10_x.c, struct-return-10_y.c,
struct-return-19_x.c, struct-return-20_x.c
struct-return-2_x.c, struct-return-2_y.c
struct-return-3_x.c: Guard non-C99 tests with SKIP_COMPLEX_INT,
SKIP_ATTRIBUTE and SKIP_ZERO_ARRAY. Turns SKIPVA into SKIP_VA.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76170
138bc75d-0d04-0410-961f-
82ee72b054a4
2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
+ * gcc.dg/compat/fnptr-by-value-1_x.c, scalar-by-value-1_y.c
+ scalar-by-value-3_x.c, scalar-by-value-3_y.c,
+ scalar-by-value-4_x.c, scalar-by-value-4_y.c,
+ scalar-return-1_x.c, scalar-return-2_y.c,
+ scalar-return-3_x.c, scalar-return-3_y.c,
+ scalar-return-4_x.c, scalar-return-4_y.c,
+ struct-align-1.h, struct-align-1_x.c,
+ struct-align-1_y.c, struct-align-2.h,
+ struct-align-2_x.c, struct-align-2_y.c,
+ struct-by-value-10_y.c, struct-by-value-11_x.c,
+ struct-by-value-11_y.c, struct-by-value-12_x.c,
+ struct-by-value-12_y.c, struct-by-value-13_x.c,
+ struct-by-value-13_y.c, struct-by-value-14_x.c,
+ struct-by-value-14_y.c, struct-by-value-15_x.c,
+ struct-by-value-15_y.c, struct-by-value-16_y.c,
+ struct-by-value-17_y.c, struct-by-value-18_y.c,
+ struct-by-value-19_y.c, struct-by-value-1_x.c,
+ struct-by-value-1_y.c, struct-by-value-20_y.c,
+ struct-by-value-2_x.c, struct-by-value-2_y.c,
+ struct-by-value-3_y.c, struct-by-value-4_x.c,
+ struct-by-value-4_y.c, struct-by-value-5_y.c,
+ struct-by-value-6_y.c, struct-by-value-7_y.c
+ struct-by-value-8_x.c, struct-by-value-8_y.c
+ struct-by-value-9_x.c, struct-by-value-9_y.c
+ struct-return-10_x.c, struct-return-10_y.c,
+ struct-return-19_x.c, struct-return-20_x.c
+ struct-return-2_x.c, struct-return-2_y.c
+ struct-return-3_x.c: Guard non-C99 tests with SKIP_COMPLEX_INT,
+ SKIP_ATTRIBUTE and SKIP_ZERO_ARRAY. Turns SKIPVA into SKIP_VA.
+
+2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
+
* gcc.dg/tls/alias-1.c: Add dg-warning for unsupported visibility
attribute on sparc*-sun-solaris2.*.
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
DEBUG_NL; \
}
+#ifndef SKIP_COMPLEX_INT
T(ci, _Complex int, (2,3))
T(cl, _Complex long, (3,4))
T(cll, _Complex long long, (5,6))
+#endif
T(cd, _Complex double, (7.0,8.0))
T(cld, _Complex long double, (8.0,9.0))
#define T(NAME) testit##NAME ();
+#ifndef SKIP_COMPLEX_INT
T(ci)
T(cl)
T(cll)
+#endif
T(cd)
T(cld)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
} \
}
+#ifndef SKIP_COMPLEX_INT
T(ci, _Complex int, (2,3))
T(cl, _Complex long, (3,4))
T(cll, _Complex long long, (5,6))
+#endif
T(cd, _Complex double, (7.0,8.0))
T(cld, _Complex long double, (8.0,9.0))
DEBUG_NL; \
}
+#ifndef SKIP_COMPLEX_INT
T(cc, _Complex char, (0,1))
T(cs, _Complex short, (1,2))
+#endif
T(cf, _Complex float, (6.0,7.0))
#undef T
#define T(NAME) testit##NAME ();
+#ifndef SKIP_COMPLEX_INT
T(cc)
T(cs)
+#endif
T(cf)
DEBUG_FINI
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
check##NAME (x16, 16); \
}
+#ifndef SKIP_COMPLEX_INT
T(cc, _Complex char, (0,1))
T(cs, _Complex short, (1,2))
+#endif
T(cf, _Complex float, (6.0,7.0))
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
DEBUG_NL; \
}
+#ifndef SKIP_COMPLEX_INT
T(ci, _Complex int, (2,3))
T(cl, _Complex long, (3,4))
T(cll, _Complex long long, (4,5))
+#endif
T(cd, _Complex double, (2.0,3.0))
T(cld, _Complex long double, (3.0,4.0))
#define T(NAME) testit##NAME ();
+#ifndef SKIP_COMPLEX_INT
T(ci)
T(cl)
T(cll)
+#endif
T(cd)
T(cld)
return rslt; \
}
+#ifndef SKIP_COMPLEX_INT
T(ci, _Complex int, (2,3))
T(cl, _Complex long, (3,4))
T(cll, _Complex long long, (4,5))
+#endif
T(cd, _Complex double, (2.0,3.0))
T(cld, _Complex long double, (3.0,4.0))
DEBUG_NL; \
}
+#ifndef SKIP_COMPLEX_INT
T(cc, _Complex char, (0,1))
T(cs, _Complex short, (1,2))
+#endif
T(cf, _Complex float, (1.0,2.0))
#undef T
#define T(NAME) testit##NAME ();
+#ifndef SKIP_COMPLEX_INT
T(cc)
T(cs)
+#endif
T(cf)
DEBUG_FINI
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
return x01; \
}
+#ifndef SKIP_COMPLEX_INT
T(cc, _Complex char, (0,1))
T(cs, _Complex short, (1,2))
+#endif
T(cf, _Complex float, (1.0,2.0))
struct A3_orig a3;
};
+#ifndef SKIP_ATTRIBUTE
#define DESC_p_all "packed attribute for all"
struct B1_p_all {
char c;
char c;
struct A3_m_inner_p_outer a3;
} __attribute__ ((packed));
+#endif
#define CHECK(NAME) test_##NAME()
SETUP (orig, 49, 1.0, 111111)
+#ifndef SKIP_ATTRIBUTE
SETUP (p_all, 50, 2.0, 222222)
SETUP (p_inner, 51, 3.0, 333333)
SETUP (p_outer, 52, 4.0, 444444)
SETUP (a_max, 53, 5.0, 555555)
SETUP (m_outer_p_inner, 54, 6.0, 666666)
SETUP (m_inner_p_outer, 55, 7.0, 777777)
+#endif
void
struct_align_1_x (void)
DEBUG_INIT
CHECK (orig);
+#ifndef SKIP_ATTRIBUTE
CHECK (p_all);
CHECK (p_inner);
CHECK (p_outer);
CHECK (a_max);
CHECK (m_outer_p_inner);
CHECK (m_inner_p_outer);
+#endif
DEBUG_FINI
}
TEST (orig)
+#ifndef SKIP_ATTRIBUTE
TEST (p_all)
TEST (p_inner)
TEST (p_outer)
TEST (a_max)
TEST (m_outer_p_inner)
TEST (m_inner_p_outer)
+#endif
unsigned long long data;
};
+#ifndef SKIP_ATTRIBUTE
#define DESC_structmax "maximum useful struct alignment"
struct epoll_event_structmax {
unsigned int events;
unsigned int events;
unsigned long long data __attribute__ ((aligned(8)));
} __attribute__ ((packed));
+#endif
/* Disable this test for 16-bit targets. */
-#if __INT_MAX__ > 32767
+#if !(defined __GNUC__) || (__INT_MAX__ > 32767)
#include "compat-common.h"
#include "struct-align-2.h"
test_##NAME()
SETUP (orig,101, 102, 0x0101010101010101ULL)
+#ifndef SKIP_ATTRIBUTE
SETUP (structmax, 103, 104, 0x1212121212121212ULL)
SETUP (struct4, 105, 106, 0x2323232323232323ULL)
SETUP (struct8, 107, 108, 0x3434343434343434ULL)
SETUP (pstruct8, 117, 118, 0x8989898989898989ULL)
SETUP (pdata4, 119, 120, 0x9A9A9A9A9A9A9A9AULL)
SETUP (pdata8, 121, 122, 0xABABABABABABABABULL)
+#endif
void
struct_align_2_x (void)
DEBUG_INIT
CHECK (orig);
+#ifndef SKIP_ATTRIBUTE
CHECK (structmax);
CHECK (struct4);
CHECK (struct8);
CHECK (pstruct8);
CHECK (pdata4);
CHECK (pdata8);
+#endif
DEBUG_FINI
/* Disable this test for 16-bit targets. */
-#if __INT_MAX__ > 32767
+#if !(defined __GNUC__) || (__INT_MAX__ > 32767)
#include "compat-common.h"
#include "struct-align-2.h"
}
TEST (orig)
+#ifndef SKIP_ATTRIBUTE
TEST (structmax)
TEST (struct4)
TEST (struct8)
TEST (pstruct8)
TEST (pdata4)
TEST (pdata8)
+#endif
#else
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-check.h"
#include "fp-struct-test-by-value-x.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cc, _Complex char)
CHECKS(cc, _Complex char)
TEST(Scc14, _Complex char)
TEST(Scc15, _Complex char)
TEST(Scc16, _Complex char)
+#endif
#undef T
void
struct_by_value_11_x ()
{
+#ifndef SKIP_COMPLEX_INT
DEBUG_INIT
#define T(TYPE, MTYPE) testit##TYPE ();
abort ();
#undef T
+#endif
}
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-init.h"
#include "fp-struct-test-by-value-y.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cc,_Complex char)
INITS(cc, _Complex char)
TEST(Scc14, _Complex char)
TEST(Scc15, _Complex char)
TEST(Scc16, _Complex char)
+#endif
#include "fp-struct-check.h"
#include "fp-struct-test-by-value-x.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cs, _Complex short)
CHECKS(cs, _Complex short)
TEST(Scs14, _Complex short)
TEST(Scs15, _Complex short)
TEST(Scs16, _Complex short)
+#endif
#undef T
void
struct_by_value_12_x ()
{
+#ifndef SKIP_COMPLEX_INT
DEBUG_INIT
#define T(TYPE, MTYPE) testit##TYPE ();
abort ();
#undef T
+#endif
}
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-init.h"
#include "fp-struct-test-by-value-y.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cs,_Complex short)
INITS(cs, _Complex short)
TEST(Scs14, _Complex short)
TEST(Scs15, _Complex short)
TEST(Scs16, _Complex short)
+#endif
#include "fp-struct-check.h"
#include "fp-struct-test-by-value-x.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(ci, _Complex int)
CHECKS(ci, _Complex int)
TEST(Sci14, _Complex int)
TEST(Sci15, _Complex int)
TEST(Sci16, _Complex int)
+#endif
#undef T
void
struct_by_value_13_x ()
{
+#ifndef SKIP_COMPLEX_INT
DEBUG_INIT
#define T(TYPE, MTYPE) testit##TYPE ();
abort ();
#undef T
+#endif
}
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-init.h"
#include "fp-struct-test-by-value-y.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(ci,_Complex int)
INITS(ci, _Complex int)
TEST(Sci14, _Complex int)
TEST(Sci15, _Complex int)
TEST(Sci16, _Complex int)
+#endif
#include "fp-struct-check.h"
#include "fp-struct-test-by-value-x.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cl, _Complex long)
CHECKS(cl, _Complex long)
TEST(Scl14, _Complex long)
TEST(Scl15, _Complex long)
TEST(Scl16, _Complex long)
+#endif
#undef T
void
struct_by_value_14_x ()
{
+#ifndef SKIP_COMPLEX_INT
DEBUG_INIT
#define T(TYPE, MTYPE) testit##TYPE ();
abort ();
#undef T
+#endif
}
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-init.h"
#include "fp-struct-test-by-value-y.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cl,_Complex long)
INITS(cl, _Complex long)
TEST(Scl14, _Complex long)
TEST(Scl15, _Complex long)
TEST(Scl16, _Complex long)
+#endif
#include "fp-struct-check.h"
#include "fp-struct-test-by-value-x.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cll, _Complex long long)
CHECKS(cll, _Complex long long)
TEST(Scll14, _Complex long long)
TEST(Scll15, _Complex long long)
TEST(Scll16, _Complex long long)
+#endif
#undef T
void
struct_by_value_15_x ()
{
+#ifndef SKIP_COMPLEX_INT
DEBUG_INIT
#define T(TYPE, MTYPE) testit##TYPE ();
abort ();
#undef T
+#endif
}
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "fp-struct-init.h"
#include "fp-struct-test-by-value-y.h"
+#ifndef SKIP_COMPLEX_INT
DEFS(cll,_Complex long long)
INITS(cll, _Complex long long)
TEST(Scll14, _Complex long long)
TEST(Scll15, _Complex long long)
TEST(Scll16, _Complex long long)
+#endif
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
extern void abort (void);
-T(0) T(1) T(2) T(3) T(4) T(5) T(6) T(7)
+#ifndef SKIP_ZERO_ARRAY
+T(0)
+#endif
+T(1) T(2) T(3) T(4) T(5) T(6) T(7)
T(8) T(9) T(10) T(11) T(12) T(13) T(14) T(15)
T(16) T(17) T(18) T(19) T(20) T(21) T(22) T(23)
T(24) T(25) T(26) T(27) T(28) T(29) T(30) T(31)
{
#define T(N) testit##N ();
-T(0) T(1) T(2) T(3) T(4) T(5) T(6) T(7)
+#ifndef SKIP_ZERO_ARRAY
+T(0)
+#endif
+T(1) T(2) T(3) T(4) T(5) T(6) T(7)
T(8) T(9) T(10) T(11) T(12) T(13) T(14) T(15)
T(16) T(17) T(18) T(19) T(20) T(21) T(22) T(23)
T(24) T(25) T(26) T(27) T(28) T(29) T(30) T(31)
check##N (s3, 192); \
}
-T(0) T(1) T(2) T(3) T(4) T(5) T(6) T(7)
+#ifndef SKIP_ZERO_ARRAY
+T(0)
+#endif
+T(1) T(2) T(3) T(4) T(5) T(6) T(7)
T(8) T(9) T(10) T(11) T(12) T(13) T(14) T(15)
T(16) T(17) T(18) T(19) T(20) T(21) T(22) T(23)
T(24) T(25) T(26) T(27) T(28) T(29) T(30) T(31)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
DEBUG_NL; \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
#define T(N, NAME, TYPE) testit##NAME##N ();
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
} \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
void checkScis (Scis x, int i)
{ if (x.c != i/16 || x.i != i+1 || x.s != i+2) DEBUG_CHECK }
+#ifndef SKIP_ZERO_ARRAY
T(0, Sc)
+#endif
T(1, Sc)
T(2, Sc)
T(3, Sc)
T(13, Sc)
T(14, Sc)
T(15, Sc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Ss)
+#endif
T(1, Ss)
T(2, Ss)
T(3, Ss)
T(13, Ss)
T(14, Ss)
T(15, Ss)
+#ifndef SKIP_ZERO_ARRAY
T(0, Si)
+#endif
T(1, Si)
T(2, Si)
T(3, Si)
#define T(N, TYPE) testit##TYPE##N ();
+#ifndef SKIP_ZERO_ARRAY
T(0, Sc)
+#endif
T(1, Sc)
T(2, Sc)
T(3, Sc)
T(13, Sc)
T(14, Sc)
T(15, Sc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Ss)
+#endif
T(1, Ss)
T(2, Ss)
T(3, Ss)
T(13, Ss)
T(14, Ss)
T(15, Ss)
+#ifndef SKIP_ZERO_ARRAY
T(0, Si)
+#endif
T(1, Si)
T(2, Si)
T(3, Si)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
} \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, Sc)
+#endif
T(1, Sc)
T(2, Sc)
T(3, Sc)
T(13, Sc)
T(14, Sc)
T(15, Sc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Ss)
+#endif
T(1, Ss)
T(2, Ss)
T(3, Ss)
T(13, Ss)
T(14, Ss)
T(15, Ss)
+#ifndef SKIP_ZERO_ARRAY
T(0, Si)
+#endif
T(1, Si)
T(2, Si)
T(3, Si)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
void checkScis (Scis x, int i)
{ if (x.c != i/16 || x.i != i+1 || x.s != i+2) DEBUG_CHECK }
+#ifndef SKIP_ZERO_ARRAY
T(0, Ssc)
+#endif
T(1, Ssc)
T(2, Ssc)
T(3, Ssc)
T(13, Ssc)
T(14, Ssc)
T(15, Ssc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Sis)
+#endif
T(1, Sis)
T(2, Sis)
T(3, Sis)
#define T(N, TYPE) testit##TYPE##N ();
+#ifndef SKIP_ZERO_ARRAY
T(0, Ssc)
+#endif
T(1, Ssc)
T(2, Ssc)
T(3, Ssc)
T(13, Ssc)
T(14, Ssc)
T(15, Ssc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Sis)
+#endif
T(1, Sis)
T(2, Sis)
T(3, Sis)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
} \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, Ssc)
+#endif
T(1, Ssc)
T(2, Ssc)
T(3, Ssc)
T(13, Ssc)
T(14, Ssc)
T(15, Ssc)
+#ifndef SKIP_ZERO_ARRAY
T(0, Sis)
+#endif
T(1, Sis)
T(2, Sis)
T(3, Sis)
void checkScis (Scis x, int i)
{ if (x.c != i/16 || x.i != i+1 || x.s != i+2) DEBUG_CHECK }
+#ifndef SKIP_ZERO_ARRAY
T(0, Scsi)
+#endif
T(1, Scsi)
T(2, Scsi)
T(3, Scsi)
T(13, Scsi)
T(14, Scsi)
T(15, Scsi)
+#ifndef SKIP_ZERO_ARRAY
T(0, Scis)
+#endif
T(1, Scis)
T(2, Scis)
T(3, Scis)
#define T(N, TYPE) testit##TYPE##N ();
+#ifndef SKIP_ZERO_ARRAY
T(0, Scsi)
+#endif
T(1, Scsi)
T(2, Scsi)
T(3, Scsi)
T(13, Scsi)
T(14, Scsi)
T(15, Scsi)
+#ifndef SKIP_ZERO_ARRAY
T(0, Scis)
+#endif
T(1, Scis)
T(2, Scis)
T(3, Scis)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
} \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, Scsi)
+#endif
T(1, Scsi)
T(2, Scsi)
T(3, Scsi)
T(13, Scsi)
T(14, Scsi)
T(15, Scsi)
+#ifndef SKIP_ZERO_ARRAY
T(0, Scis)
+#endif
T(1, Scis)
T(2, Scis)
T(3, Scis)
#include "fp2-struct-defs.h"
#include "fp2-struct-check.h"
-T(Sfd);
-T(Sfl);
-T(Sdf);
-T(Sdl);
-T(Slf);
-T(Sld);
-T(Sfdl);
-T(Sfld);
-T(Sdfl);
-T(Sdlf);
-T(Slfd);
-T(Sldf);
+T(Sfd)
+T(Sfl)
+T(Sdf)
+T(Sdl)
+T(Slf)
+T(Sld)
+T(Sfdl)
+T(Sfld)
+T(Sdfl)
+T(Sdlf)
+T(Slfd)
+T(Sldf)
#undef T
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
DEBUG_NL; \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
#define T(N, NAME, TYPE) testit##NAME##N ();
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
return rslt; \
}
+#ifndef SKIP_ZERO_ARRAY
T(0, uc, unsigned char)
+#endif
T(1, uc, unsigned char)
T(2, uc, unsigned char)
T(3, uc, unsigned char)
T(13, uc, unsigned char)
T(14, uc, unsigned char)
T(15, uc, unsigned char)
+#ifndef SKIP_ZERO_ARRAY
T(0, us, unsigned short)
+#endif
T(1, us, unsigned short)
T(2, us, unsigned short)
T(3, us, unsigned short)
T(13, us, unsigned short)
T(14, us, unsigned short)
T(15, us, unsigned short)
+#ifndef SKIP_ZERO_ARRAY
T(0, ui, unsigned int)
+#endif
T(1, ui, unsigned int)
T(2, ui, unsigned int)
T(3, ui, unsigned int)
#include "compat-common.h"
-/* Turn off checking for variable arguments with -DSKIPVA. */
-#ifdef SKIPVA
+#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;