summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/typo-correction-delayed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/typo-correction-delayed.cpp')
-rw-r--r--clang/test/SemaCXX/typo-correction-delayed.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typo-correction-delayed.cpp b/clang/test/SemaCXX/typo-correction-delayed.cpp
index 984d68b6b92..c82f865a863 100644
--- a/clang/test/SemaCXX/typo-correction-delayed.cpp
+++ b/clang/test/SemaCXX/typo-correction-delayed.cpp
@@ -48,3 +48,14 @@ void testNoCandidates() {
callee(xxxxxx, // expected-error-re {{use of undeclared identifier 'xxxxxx'{{$}}}}
zzzzzz); // expected-error-re {{use of undeclared identifier 'zzzzzz'{{$}}}}
}
+
+class string {};
+struct Item {
+ void Nest();
+ string text();
+ Item* next(); // expected-note {{'next' declared here}}
+};
+void testExprFilter(Item *i) {
+ Item *j;
+ j = i->Next(); // expected-error {{no member named 'Next' in 'Item'; did you mean 'next'?}}
+}
OpenPOWER on IntegriCloud