[clang-tools-extra] r184314 - Fix a remove-cstr-calls test that fails checking of the produced code.

Manuel Klimek klimek at google.com
Wed Jun 19 08:43:41 PDT 2013


Author: klimek
Date: Wed Jun 19 10:43:40 2013
New Revision: 184314

URL: http://llvm.org/viewvc/llvm-project?rev=184314&view=rev
Log:
Fix a remove-cstr-calls test that fails checking of the produced code.

Modified:
    clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp

Modified: clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp?rev=184314&r1=184313&r2=184314&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp (original)
+++ clang-tools-extra/trunk/test/remove-cstr-calls/basic.cpp Wed Jun 19 10:43:40 2013
@@ -13,7 +13,12 @@ template<typename C, typename T, typenam
 };
 typedef basic_string<char, std::char_traits<char>, std::allocator<char> > string;
 }
-namespace llvm { struct StringRef { StringRef(const char *p); }; }
+namespace llvm {
+struct StringRef {
+  StringRef(const char *p);
+  StringRef(const std::string &);
+};
+}
 
 void f1(const std::string &s) {
   f1(s.c_str());





More information about the cfe-commits mailing list