-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test 46-apron2/84-relation-extern (issue #1440)
- Loading branch information
1 parent
6d0a4f8
commit df01b46
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SKIP PARAM: --set ana.activated[+] apron | ||
#include <pthread.h> | ||
#include <goblint.h> | ||
|
||
extern int g; | ||
|
||
void *t_fun(void *arg) { | ||
return NULL; | ||
} | ||
|
||
int main() { | ||
pthread_t id; | ||
pthread_create(&id, NULL, t_fun, NULL); | ||
|
||
if (g) // NOWARN | ||
__goblint_check(1); // reachable | ||
else | ||
__goblint_check(1); // reachable | ||
|
||
return 0; | ||
} |