summaryrefslogtreecommitdiff
path: root/Modules/CheckForPthreads.c
blob: e70ceb1da25371b61b10235c5e5d015031794f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <pthread.h>

void* start_routine(void* args)
{
  return args;
}

int main(void)
{
  /* This is a compile and link test, no code to actually run things. */
  pthread_t thread;
  pthread_create(&thread, 0, start_routine, 0);
  pthread_join(thread, 0);
  return 0;
}