@needs_dlfcn
def test_dylink_global_init(self):
    self.dylink_test('\n      #include <stdio.h>\n      struct Class {\n        Class() { printf("a new Class\\n"); }\n      };\n      static Class c;\n      int main() {\n        return 0;\n      }\n    ', '\n      void nothing() {}\n    ', 'a new Class\n')
@needs_dlfcn
def test_dylink_global_init(self):
    self.dylink_test('\n      #include <stdio.h>\n      struct Class {\n        Class() { printf("a new Class\\n"); }\n      };\n      static Class c;\n      int main() {\n        return 0;\n      }\n    ', '\n      void nothing() {}\n    ', 'a new Class\n')