We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb71a01 commit 3a11d7dCopy full SHA for 3a11d7d
regression/cbmc/posix_memalign/main.c
@@ -0,0 +1,16 @@
1
+#include <stdlib.h>
2
+#include <string.h>
3
+
4
+int main()
5
+{
6
+ size_t size = 4;
7
+ size_t page_size = 4096;
8
+ void *src = "testing";
9
+ void *dest;
10
+ if(posix_memalign(&dest, page_size, size))
11
+ {
12
+ return -1;
13
+ }
14
+ memcpy(dest, src, size);
15
+ return 0;
16
+}
regression/cbmc/posix_memalign/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+--pointer-check --bounds-check
+VERIFICATION SUCCESSFUL
+^EXIT=0$
+^SIGNAL=0$
+--
+^\*\*\*\* WARNING: no body for function posix_memalign
0 commit comments