Skip to content

Commit

Permalink
Add atexit test with spawn disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 25, 2023
1 parent 1947aae commit 4bc0303
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/regression/41-stdlib/08-atexit-no-spawn.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// PARAM: --disable sem.unknown_function.spawn
#include <stdlib.h>
#include <goblint.h>

void bye()
{
__goblint_check(0); // NOWARN (unreachable)
}

int main()
{
atexit(bye);
return 0;
}

0 comments on commit 4bc0303

Please sign in to comment.