f (free) f (free) ;
[ ] [ anton's-regression ] unit-test
+
+STRUCT: bool-and-ptr
+ { b bool }
+ { ptr void* } ;
+
+FUNCTION: bool-and-ptr ffi_test_61 ( ) ;
+{
+ S{ bool-and-ptr { b t } { ptr f } }
+} [
+ ffi_test_61
+] unit-test
unsigned long long ffi_test_60(unsigned long long x) {
return x;
}
+
+struct bool_and_ptr ffi_test_61(unsigned long long x) {
+ struct bool_and_ptr bap;
+ bap.b = true;
+ bap.ptr = NULL;
+ return bap;
+}
FACTOR_EXPORT signed long long ffi_test_59(signed long long x);
FACTOR_EXPORT unsigned long long ffi_test_60(unsigned long long x);
+struct bool_and_ptr {
+ bool b;
+ void* ptr;
+};
+
+FACTOR_EXPORT struct bool_and_ptr ffi_test_61(unsigned long long x);