Skip to content

Commit

Permalink
Add test 46-apron2/84-relation-extern (issue #1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 authored and michael-schwarz committed May 24, 2024
1 parent 6d0a4f8 commit df01b46
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/regression/46-apron2/84-relation-extern.c
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;
}

0 comments on commit df01b46

Please sign in to comment.