Skip to content

Commit

Permalink
Add test for suppressing thread-unsafe lib fun calls in single-thread…
Browse files Browse the repository at this point in the history
…ed mode #1260
  • Loading branch information
karoliineh committed Dec 27, 2023
1 parent ea1bf23 commit 8bb2c5f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// PARAM: --enable allglobs

#include <stdlib.h>

int main() {
rand();
return 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$ goblint --enable allglobs 52-thread-unsafe-libfuns-single-thread.c
[Info][Deadcode] Logical lines of code (LLoC) summary:
live: 3
dead: 0
total lines: 3

0 comments on commit 8bb2c5f

Please sign in to comment.