Skip to content

Commit

Permalink
57/14 add assert that globals have not been invalidated
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 27, 2022
1 parent cb1a698 commit ef8ca20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/regression/57-floats/14-isgreater.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <math.h>
#include <goblint.h>

int g = 8;

int main(void)
{
int x = isgreater(2.0, 1.0);
Expand All @@ -16,5 +18,8 @@ int main(void)
__goblint_check(x);
x = !isgreater(INFINITY, INFINITY);
__goblint_check(x);

// Check globals have not been invalidated
__goblint_check(g == 8);
return 0;
}

0 comments on commit ef8ca20

Please sign in to comment.