Skip to content

Commit 652bf92

Browse files
author
Thomas Kiley
committed
Add test for intializing a void* pointer
Currently goto-harness crashes with this example.
1 parent 5c1f7bb commit 652bf92

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <assert.h>
2+
3+
void test_function(void *input)
4+
{
5+
assert(input == 0);
6+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
main.c
3+
--harness-type call-function --function test_function
4+
\[test_function\.assertion\.1\] line \d+ assertion input == 0: SUCCESS
5+
^VERIFICATION SUCCESSFUL$
6+
^EXIT=0$
7+
^SIGNAL=0$
8+
--
9+
--
10+
Ensure the harness is able to initalize a void* ptr to a null value.

0 commit comments

Comments
 (0)