1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include <pthread.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 
12 void *f1(void *p) {
13     printf("hello\n");
14     return NULL;
15 }
16 
17 int main (int argc, char const *argv[])
18 {
19     pthread_t t1;
20     pthread_create(&t1, NULL, f1, NULL);
21 
22     return 0;
23 }
24