diff options
| author | Manuel Klimek <klimek@google.com> | 2013-06-19 15:43:40 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2013-06-19 15:43:40 +0000 |
| commit | 1a3dc8576e512fcf740adddc726c1f92739e98ae (patch) | |
| tree | 40cb2f321e45b99a34fb4d35a5046d2acda5b8f6 | |
| parent | a0c025f5d268229527599ab12c581e0289851e5f (diff) | |
| download | bcm5719-llvm-1a3dc8576e512fcf740adddc726c1f92739e98ae.tar.gz bcm5719-llvm-1a3dc8576e512fcf740adddc726c1f92739e98ae.zip | |
Fix a remove-cstr-calls test that fails checking of the produced code.
llvm-svn: 184314
| -rw-r--r-- | clang-tools-extra/test/remove-cstr-calls/basic.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang-tools-extra/test/remove-cstr-calls/basic.cpp b/clang-tools-extra/test/remove-cstr-calls/basic.cpp index 4aabf1cece0..b63488db9f6 100644 --- a/clang-tools-extra/test/remove-cstr-calls/basic.cpp +++ b/clang-tools-extra/test/remove-cstr-calls/basic.cpp @@ -13,7 +13,12 @@ template<typename C, typename T, typename A> struct basic_string { }; 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()); |

