Skip to content

Commit 6e2207c

Browse files
Add regression test. Closes #1486
1 parent a102624 commit 6e2207c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SKIP PARAM: --set ana.activated[+] apron --set ana.relation.privatization mutex-meet --sets ana.apron.domain interval
2+
// Checks that branching over extern or volatile variables does not yield to both branches being dead.
3+
#include<pthread.h>
4+
extern int optind;
5+
6+
void* a(void* arg) {
7+
// Just go multi-threaded
8+
}
9+
10+
void main() {
11+
pthread_t t;
12+
13+
14+
pthread_create(&t, 0, a, 0);
15+
16+
if (optind) {
17+
18+
}
19+
20+
__goblint_check(1); // Reachable
21+
}

0 commit comments

Comments
 (0)