@needs_dlfcn
def test_dylink_printfs(self):
    self.dylink_test('\n      #include <stdio.h>\n      extern "C" void sidey();\n      int main() {\n        printf("hello from main\\n");\n        sidey();\n        return 0;\n      }\n    ', '\n      #include <stdio.h>\n      extern "C" void sidey() {\n        printf("hello from side\\n");\n      }\n    ', 'hello from main\nhello from side\n')
@needs_dlfcn
def test_dylink_printfs(self):
    self.dylink_test('\n      #include <stdio.h>\n      extern "C" void sidey();\n      int main() {\n        printf("hello from main\\n");\n        sidey();\n        return 0;\n      }\n    ', '\n      #include <stdio.h>\n      extern "C" void sidey() {\n        printf("hello from side\\n");\n      }\n    ', 'hello from main\nhello from side\n')