Skip to content

Commit ef8ca20

Browse files
57/14 add assert that globals have not been invalidated
1 parent cb1a698 commit ef8ca20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/regression/57-floats/14-isgreater.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include <math.h>
33
#include <goblint.h>
44

5+
int g = 8;
6+
57
int main(void)
68
{
79
int x = isgreater(2.0, 1.0);
@@ -16,5 +18,8 @@ int main(void)
1618
__goblint_check(x);
1719
x = !isgreater(INFINITY, INFINITY);
1820
__goblint_check(x);
21+
22+
// Check globals have not been invalidated
23+
__goblint_check(g == 8);
1924
return 0;
2025
}

0 commit comments

Comments
 (0)