@needs_dlfcn
def test_dylink_class(self):
    self.dylink_test(header='\n      #include <stdio.h>\n      struct Class {\n        Class(const char *name);\n      };\n    ', main='\n      #include "header.h"\n      int main() {\n        Class c("main");\n        return 0;\n      }\n    ', side='\n      #include "header.h"\n      Class::Class(const char *name) { printf("new %s\\n", name); }\n    ', expected=['new main\n'])
@needs_dlfcn
def test_dylink_class(self):
    self.dylink_test(header='\n      #include <stdio.h>\n      struct Class {\n        Class(const char *name);\n      };\n    ', main='\n      #include "header.h"\n      int main() {\n        Class c("main");\n        return 0;\n      }\n    ', side='\n      #include "header.h"\n      Class::Class(const char *name) { printf("new %s\\n", name); }\n    ', expected=['new main\n'])