--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/make/test_qsort_r.c Thu Dec 18 12:11:30 2025 +0100 @@ -0,0 +1,14 @@ +#define _GNU_SOURCE +#include <stdlib.h> + +static int f(const void *a, const void *b, void *c) { + return 0; // not important what it does for this test +} + +int main() { + int x[4] = {3, 1, 4, 0}; + int z = 47; + void *c = &z; + qsort_r(x, 4, sizeof(int), f, c); + return 0; +}