Home | History | Annotate | Download | only in VMCore

Lines Matching refs:str

52   char *str = new char[13];
53 strncpy(str, "testing 1 2 3", 13);
54 MDString *s = MDString::get(Context, StringRef(str, 13));
55 strncpy(str, "aaaaaaaaaaaaa", 13);
56 delete[] str;
58 std::string Str;
59 raw_string_ostream oss(Str);
61 EXPECT_STREQ("metadata !\"testing 1 2 3\"", oss.str().c_str());
66 char str[5] = {0, '\n', '"', '\\', (char)-1};
67 MDString *s = MDString::get(Context, StringRef(str+0, 5));
68 std::string Str;
69 raw_string_ostream oss(Str);
71 EXPECT_STREQ("metadata !\"\\00\\0A\\22\\5C\\FF\"", oss.str().c_str());
139 std::string Str;
140 raw_string_ostream oss(Str);
143 oss.str().c_str());