def test3():
    self.do_run('\n#include <iostream>\n#include <string>\n\nclass std_string {\npublic:\n  std_string(): ptr(nullptr) { std::cout << "std_string()\\n"; }\n  std_string(const char* s): ptr(s) { std::cout << "std_string(const char* s)" << std::endl; }\n  std_string(const std_string& s): ptr(s.ptr) { std::cout << "std_string(const std_string& s) " << std::endl; }\n  const char* data() const { return ptr; }\nprivate:\n  const char* ptr;\n};\n\nconst std_string txtTestString("212121\\0");\nconst std::string s2text("someweirdtext");\n\nint main() {\n  std::cout << s2text << std::endl;\n  std::cout << txtTestString.data() << std::endl;\n  std::cout << txtTestString.data() << std::endl;\n  return 0;\n}\n      ', 'std_string(const char* s)\nsomeweirdtext\n212121\n212121\n')
def test3():
    self.do_run('\n#include <iostream>\n#include <string>\n\nclass std_string {\npublic:\n  std_string(): ptr(nullptr) { std::cout << "std_string()\\n"; }\n  std_string(const char* s): ptr(s) { std::cout << "std_string(const char* s)" << std::endl; }\n  std_string(const std_string& s): ptr(s.ptr) { std::cout << "std_string(const std_string& s) " << std::endl; }\n  const char* data() const { return ptr; }\nprivate:\n  const char* ptr;\n};\n\nconst std_string txtTestString("212121\\0");\nconst std::string s2text("someweirdtext");\n\nint main() {\n  std::cout << s2text << std::endl;\n  std::cout << txtTestString.data() << std::endl;\n  std::cout << txtTestString.data() << std::endl;\n  return 0;\n}\n      ', 'std_string(const char* s)\nsomeweirdtext\n212121\n212121\n')