diff test/callback_suite_aggrs/globals.c @ 561:d60f741e5eae

- test code comments
author Tassilo Philipp
date Sat, 03 Sep 2022 17:34:23 +0200
parents a6d00ee46731
children f29db2bf3c0e
line wrap: on
line diff
--- a/test/callback_suite_aggrs/globals.c	Sat Sep 03 17:03:37 2022 +0200
+++ b/test/callback_suite_aggrs/globals.c	Sat Sep 03 17:34:23 2022 +0200
@@ -31,7 +31,10 @@
 DEF_TYPES
 #undef X
 
-#define AGGR_MISALIGN 1
+/* intentional misalignment of test aggregates (use only positive numbers);
+ * crashes/exceptions (e.g. sigbus on some platforms) when using values > 0
+ * might reveal missing aggr-by-val copies in the implementation */
+#define AGGR_MISALIGN 1 /* @@@AGGR make configurable */
 
 static double rand_d()      { return ( ( (double) rand() )  / ( (double) RAND_MAX ) ); }