We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5519ec commit a073502Copy full SHA for a073502
regression/cbmc/posix_memalign/main.c
@@ -0,0 +1,17 @@
1
+#include <malloc.h>
2
+#include <stdlib.h>
3
+#include <string.h>
4
+
5
+int main()
6
+{
7
+ size_t size = 4;
8
+ size_t page_size = 4096;
9
+ void *src = "testing";
10
+ void *dest;
11
+ if(posix_memalign(&dest, page_size, size))
12
+ {
13
+ return -1;
14
+ }
15
+ memcpy(dest, src, size);
16
+ return 0;
17
+}
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