We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fb568 commit 2d00944Copy full SHA for 2d00944
regression/cbmc-shadow-memory/errno1/main.c
@@ -0,0 +1,15 @@
1
+#include <assert.h>
2
+#include <errno.h>
3
+
4
+int main()
5
+{
6
+ __CPROVER_field_decl_local("field1", (_Bool)0);
7
+ __CPROVER_field_decl_global("field1", (_Bool)0);
8
9
+ int *error = __errno();
10
11
+ assert(__CPROVER_get_field(error, "field1") == 0);
12
13
+ __CPROVER_set_field(error, "field1", 1);
14
+ assert(__CPROVER_get_field(error, "field1") == 1);
15
+}
regression/cbmc-shadow-memory/errno1/test.desc
@@ -0,0 +1,8 @@
+FUTURE
+main.c
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+^warning: ignoring
0 commit comments