summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:28:05 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-13 16:29:09 +0000
commit03ac50856c9fc8c96b7a17239ee40a10397750a7 (patch)
treea648c6d3428e4757e003f6ed1748adb9613065db /gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c
parent34efdaf078b01a7387007c4e6bde6db86384c4b7 (diff)
downloadgcc-tarball-03ac50856c9fc8c96b7a17239ee40a10397750a7.tar.gz
gcc 7.2.0
This is imported manually due to a bug in the tarball import script. See the baserock-dev mailing list archives (November 2017) for a more detailed explaination of the issue.
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c')
-rw-r--r--gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c100
1 files changed, 0 insertions, 100 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c b/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c
deleted file mode 100644
index 48ea1d9975..0000000000
--- a/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_x.c
+++ /dev/null
@@ -1,100 +0,0 @@
-#include "compat-common.h"
-
-#define T(NAME, TYPE, INITVAL) \
-TYPE g01##NAME, g02##NAME, g03##NAME, g04##NAME; \
-TYPE g05##NAME, g06##NAME, g07##NAME, g08##NAME; \
-TYPE g09##NAME, g10##NAME, g11##NAME, g12##NAME; \
-TYPE g13##NAME, g14##NAME, g15##NAME, g16##NAME; \
- \
-extern void init##NAME (TYPE *p, TYPE v); \
-extern void checkg##NAME (void); \
-extern void \
-test##NAME (TYPE x01, TYPE x02, TYPE x03, TYPE x04, \
- TYPE x05, TYPE x06, TYPE x07, TYPE x08, \
- TYPE x09, TYPE x10, TYPE x11, TYPE x12, \
- TYPE x13, TYPE x14, TYPE x15, TYPE x16); \
- \
-void \
-check##NAME (TYPE x, TYPE v) \
-{ \
- if (x != v + INITVAL) \
- DEBUG_CHECK \
-} \
- \
-void \
-test2_##NAME (TYPE x01, TYPE x02, TYPE x03, TYPE x04, \
- TYPE x05, TYPE x06, TYPE x07, TYPE x08) \
-{ \
- test##NAME (x01, g02##NAME, x02, g04##NAME, \
- x03, g06##NAME, x04, g08##NAME, \
- x05, g10##NAME, x06, g12##NAME, \
- x07, g14##NAME, x08, g16##NAME); \
-} \
- \
-void \
-testit##NAME (void) \
-{ \
- DEBUG_FPUTS (#NAME); \
- DEBUG_FPUTS (" init: "); \
- init##NAME (&g01##NAME, 1); \
- init##NAME (&g02##NAME, 2); \
- init##NAME (&g03##NAME, 3); \
- init##NAME (&g04##NAME, 4); \
- init##NAME (&g05##NAME, 5); \
- init##NAME (&g06##NAME, 6); \
- init##NAME (&g07##NAME, 7); \
- init##NAME (&g08##NAME, 8); \
- init##NAME (&g09##NAME, 9); \
- init##NAME (&g10##NAME, 10); \
- init##NAME (&g11##NAME, 11); \
- init##NAME (&g12##NAME, 12); \
- init##NAME (&g13##NAME, 13); \
- init##NAME (&g14##NAME, 14); \
- init##NAME (&g15##NAME, 15); \
- init##NAME (&g16##NAME, 16); \
- checkg##NAME (); \
- DEBUG_NL; \
- DEBUG_FPUTS (#NAME); \
- DEBUG_FPUTS (" test: "); \
- test##NAME (g01##NAME, g02##NAME, g03##NAME, g04##NAME, \
- g05##NAME, g06##NAME, g07##NAME, g08##NAME, \
- g09##NAME, g10##NAME, g11##NAME, g12##NAME, \
- g13##NAME, g14##NAME, g15##NAME, g16##NAME); \
- DEBUG_NL; \
- DEBUG_FPUTS (#NAME); \
- DEBUG_FPUTS (" test2: "); \
- test2_##NAME (g01##NAME, g03##NAME, g05##NAME, g07##NAME, \
- g09##NAME, g11##NAME, g13##NAME, g15##NAME); \
- DEBUG_NL; \
-}
-
-T(c, char, 21)
-T(uc, unsigned char, 22)
-T(sc, signed char, (-33))
-T(us, unsigned short, 41)
-T(ss, short, (-44))
-T(f, float, 90.0)
-
-#undef T
-
-void
-scalar_by_value_2_x ()
-{
-DEBUG_INIT
-
-#define T(NAME) testit##NAME ();
-
-T(c)
-T(uc)
-T(sc)
-T(us)
-T(ss)
-T(f)
-
-DEBUG_FINI
-
-if (fails != 0)
- abort ();
-
-#undef T
-}