Now the test should fail during its linking if a single-threaded libgc
is used (this should not happen in case of configure/make).
* tests/initsecondarythread.c (main): Call GC_get_parallel() to ensure
that libgc is compiled with the threads support.
/* GC_INIT() must be called from main thread only. */
GC_INIT();
# endif
+ (void)GC_get_parallel(); /* linking fails if no threads support */
# ifdef GC_PTHREADS
if ((code = pthread_create (&t, NULL, thread, NULL)) != 0) {
fprintf(stderr, "Thread creation failed %d\n", code);