mirror of
https://github.com/frida/tinycc
synced 2024-11-28 02:29:38 +03:00
Add testcase for elf_version
This commit is contained in:
parent
7268fe7239
commit
b073a9c103
17
tests/tests2/106_pthread.c
Normal file
17
tests/tests2/106_pthread.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
int ret;
|
||||
pthread_condattr_t attr;
|
||||
pthread_cond_t condition;
|
||||
|
||||
pthread_condattr_init (&attr);
|
||||
pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
|
||||
printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok");
|
||||
pthread_condattr_destroy (&attr);
|
||||
return 0;
|
||||
}
|
1
tests/tests2/106_pthread.expect
Normal file
1
tests/tests2/106_pthread.expect
Normal file
@ -0,0 +1 @@
|
||||
ok
|
Loading…
Reference in New Issue
Block a user