@needs_dlfcn
def test_dylink_static_funcpointer_float(self):
    self.dylink_test(main='\\\n      #include <stdio.h>\n      #include "header.h"\n      int sidey(floatfunc f);\n      float func1(float f) { printf("hello 1: %f\\n", f); return 0; }\n      floatfunc f1 = &func1;\n      int main(int argc, char **argv) {\n        printf("got: %d\\n", sidey(f1));\n        f1(12.34);\n        return 0;\n      }\n      ', side='      #include "header.h"\n      int sidey(floatfunc f) { f(56.78); return 1; }\n      ', expected='hello 1: 56.779999\ngot: 1\nhello 1: 12.340000\n', header='typedef float (*floatfunc)(float);')
@needs_dlfcn
def test_dylink_static_funcpointer_float(self):
    self.dylink_test(main='\\\n      #include <stdio.h>\n      #include "header.h"\n      int sidey(floatfunc f);\n      float func1(float f) { printf("hello 1: %f\\n", f); return 0; }\n      floatfunc f1 = &func1;\n      int main(int argc, char **argv) {\n        printf("got: %d\\n", sidey(f1));\n        f1(12.34);\n        return 0;\n      }\n      ', side='      #include "header.h"\n      int sidey(floatfunc f) { f(56.78); return 1; }\n      ', expected='hello 1: 56.779999\ngot: 1\nhello 1: 12.340000\n', header='typedef float (*floatfunc)(float);')