Skip to content

Commit 3a6491a

Browse files
committed
[skip ci] Add reduced test for #502.
1 parent 0b7c0f0 commit 3a6491a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// SKIP (time-out with cb439e0, see https://github.com/goblint/analyzer/pull/502)
2+
#include<pthread.h>
3+
4+
struct a {
5+
int b;
6+
};
7+
8+
void c(struct a *g) {
9+
int x;
10+
struct a *e;
11+
while (x)
12+
e = &g[g->b];
13+
}
14+
15+
void *f(void *arg) {
16+
struct a d;
17+
c(&d);
18+
return NULL;
19+
}
20+
21+
int main() {
22+
pthread_t t;
23+
pthread_create(&t, NULL, f, NULL);
24+
return 0;
25+
}

0 commit comments

Comments
 (0)