summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/typo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-31 07:42:17 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-31 07:42:17 +0000
commitaf2bd473d2fe7d757be539f89163bbb1c83c5501 (patch)
tree70a49aa1239330833b08745edcdc44c65f731256 /clang/test/FixIt/typo.cpp
parent9039ff89122007e4523c23ce2f7f50fb82580c21 (diff)
downloadbcm5719-llvm-af2bd473d2fe7d757be539f89163bbb1c83c5501.tar.gz
bcm5719-llvm-af2bd473d2fe7d757be539f89163bbb1c83c5501.zip
Typo correction for member access into classes/structs/unions, e.g.,
s.fnd("hello") llvm-svn: 92345
Diffstat (limited to 'clang/test/FixIt/typo.cpp')
-rw-r--r--clang/test/FixIt/typo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp
index 6c232f74038..e0c7bf64dc6 100644
--- a/clang/test/FixIt/typo.cpp
+++ b/clang/test/FixIt/typo.cpp
@@ -23,5 +23,6 @@ float area(float radius, float pi) {
}
bool test_string(std::string s) {
- return s.find("hello") == std::string::pos; // expected-error{{no member named 'pos' in 'class std::basic_string<char>'; did you mean 'npos'?}}
+ return s.fnd("hello") // expected-error{{no member named 'fnd' in 'class std::basic_string<char>'; did you mean 'find'?}}
+ == std::string::pos; // expected-error{{no member named 'pos' in 'class std::basic_string<char>'; did you mean 'npos'?}}
}
OpenPOWER on IntegriCloud