diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-06-22 23:37:05 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-06-22 23:37:05 +0000 |
commit | 9cb8e9fc89d347c7e1cfe19a832e45188166a2d5 (patch) | |
tree | cf3ddbd1c4216cbcc91972b4239ecde4b02a8bcc /clang/test | |
parent | 460e94d84297d32aac0b3ccb88b80fc57433bfae (diff) | |
download | bcm5719-llvm-9cb8e9fc89d347c7e1cfe19a832e45188166a2d5.tar.gz bcm5719-llvm-9cb8e9fc89d347c7e1cfe19a832e45188166a2d5.zip |
Perform typo correction for base class specifiers.
llvm-svn: 159046
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaCXX/typo-correction.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typo-correction.cpp b/clang/test/SemaCXX/typo-correction.cpp index 90fdb221f92..77fca744406 100644 --- a/clang/test/SemaCXX/typo-correction.cpp +++ b/clang/test/SemaCXX/typo-correction.cpp @@ -219,3 +219,11 @@ namespace PR13051 { f(&S<int>::foo); // expected-error-re{{no member named 'foo' in 'PR13051::S<int>'$}} } } + +namespace PR6325 { +class foo { }; // expected-note{{'foo' declared here}} +// Note that for this example (pulled from the PR), if keywords are not excluded +// as correction candidates then no suggestion would be given; correcting +// 'boo' to 'bool' is the same edit distance as correcting 'boo' to 'foo'. +class bar : boo { }; // expected-error{{unknown class name 'boo'; did you mean 'foo'?}} +} |