-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for suppressing thread-unsafe lib fun calls in single-thread…
…ed mode #1260
- Loading branch information
1 parent
ea1bf23
commit 8bb2c5f
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
tests/regression/00-sanity/52-thread-unsafe-libfuns-single-thread.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/regression/00-sanity/52-thread-unsafe-libfuns-single-thread.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |