@needs_dlfcn
def test_dylink_global_var_modded(self):
    self.dylink_test(main='\n      #include <stdio.h>\n      extern int x;\n      int main() {\n        printf("extern is %d.\\n", x);\n        return 0;\n      }\n    ', side='\n      int x = 123;\n      struct Initter {\n        Initter() { x = 456; }\n      };\n      Initter initter;\n    ', expected=['extern is 456.\n'])
@needs_dlfcn
def test_dylink_global_var_modded(self):
    self.dylink_test(main='\n      #include <stdio.h>\n      extern int x;\n      int main() {\n        printf("extern is %d.\\n", x);\n        return 0;\n      }\n    ', side='\n      int x = 123;\n      struct Initter {\n        Initter() { x = 456; }\n      };\n      Initter initter;\n    ', expected=['extern is 456.\n'])