add new failing test case
This commit is contained in:
parent
b37b975b17
commit
510763f68e
2 changed files with 33 additions and 18 deletions
|
|
@ -71,3 +71,9 @@ AlignmentTest get_struct() {
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_call_with_trailing_string_arg(int a, int b, char* text) {
|
||||||
|
printf("call of `test_call_with_trailing_string_arg` with a=%i b=%i text='%s'",a,b,text);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,3 +59,12 @@
|
||||||
(ffi/freset! (ffi/static-variable "counter" ::mem/int) 1)
|
(ffi/freset! (ffi/static-variable "counter" ::mem/int) 1)
|
||||||
(t/is (= ((ffi/cfn "get_string1" [] ::mem/c-string))
|
(t/is (= ((ffi/cfn "get_string1" [] ::mem/c-string))
|
||||||
"Goodbye friend.")))
|
"Goodbye friend.")))
|
||||||
|
|
||||||
|
(t/deftest can-call-with-trailing-string-arg
|
||||||
|
(t/is
|
||||||
|
(=
|
||||||
|
((ffi/cfn "test_call_with_trailing_string_arg"
|
||||||
|
[::mem/int ::mem/int ::mem/c-string]
|
||||||
|
::mem/void)
|
||||||
|
1 2 "third arg")
|
||||||
|
)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue