Home | History | Annotate | Download | only in cc

Lines Matching refs:Thread

36 	atf_set "descr" "Test thread sanitizer for thread leak condition"
43 atf_set "descr" "Test thread sanitizer for thread leak with profiling option"
49 atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag"
55 atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag"
67 void *Thread(void *a) {
75 pthread_create(&t, NULL, Thread, NULL);
82 cc -fsanitize=thread -o test test.c
84 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
95 void *Thread(void *a) {
103 pthread_create(&t, NULL, Thread, NULL);
110 cc -fsanitize=thread -static -o test -pg test.c
112 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
129 void *Thread(void *a) {
137 pthread_create(&t, NULL, Thread, NULL);
144 cc -fsanitize=thread -fPIC -shared -o libtest.so pic.c
145 cc -o test test.c -fsanitize=thread -L. -ltest
149 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test
163 void *Thread(void *a) {
171 pthread_create(&t, NULL, Thread, NULL);
178 cc -fsanitize=thread -o test -fpie -pie test.c
180 atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test