source: CIVL/examples/translation/pthread/pointerProb.c@ 764d472

1.23 2.0 main test-branch
Last change on this file since 764d472 was ccee2d5, checked in by John Edenhofner <johneden@…>, 12 years ago

Created test to find error in dereference of struct pointer with undefined field

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1161 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 228 bytes
Line 
1#include <civlc.h>
2#include <pthread.h>
3
4void *foo(void *arg){
5 pthread_exit(NULL);
6}
7
8int main(void){
9 pthread_t p1, p2;
10 pthread_create(&p1, NULL, foo, NULL);
11 pthread_create(&p2, NULL, foo, NULL);
12 pthread_exit(NULL);
13}
Note: See TracBrowser for help on using the repository browser.