Home | History | Annotate | Download | only in output_tests
      1 #include <pthread.h>
      2 
      3 void *Thread(void *x) {
      4   return 0;
      5 }
      6 
      7 int main() {
      8   pthread_t t;
      9   pthread_create(&t, 0, Thread, 0);
     10   pthread_detach(t);
     11   return 0;
     12 }
     13 
     14 // CHECK-NOT: WARNING: ThreadSanitizer: thread leak
     15 
     16