Skip to content

Commit 8bb2c5f

Browse files
committed
Add test for suppressing thread-unsafe lib fun calls in single-threaded mode #1260
1 parent ea1bf23 commit 8bb2c5f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// PARAM: --enable allglobs
2+
3+
#include <stdlib.h>
4+
5+
int main() {
6+
rand();
7+
return 0;
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$ goblint --enable allglobs 52-thread-unsafe-libfuns-single-thread.c
2+
[Info][Deadcode] Logical lines of code (LLoC) summary:
3+
live: 3
4+
dead: 0
5+
total lines: 3

0 commit comments

Comments
 (0)