def test_cxx_self_assign(self):
    self.do_run('\n      #include <map>\n      #include <stdio.h>\n\n      int main() {\n        std::map<int, int> m;\n        m[0] = 1;\n        m = m;\n        // size should still be one after self assignment\n        if (m.size() == 1) {\n          printf("ok.\\n");\n        }\n      }\n    ', 'ok.')
def test_cxx_self_assign(self):
    self.do_run('\n      #include <map>\n      #include <stdio.h>\n\n      int main() {\n        std::map<int, int> m;\n        m[0] = 1;\n        m = m;\n        // size should still be one after self assignment\n        if (m.size() == 1) {\n          printf("ok.\\n");\n        }\n      }\n    ', 'ok.')