diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-07-01 21:27:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-07-01 21:27:45 +0000 |
commit | 3b22a88488e94f13774322e6e0c575a0651aa149 (patch) | |
tree | acc46538427cc86e27a201fb529bd7c142e37438 /clang/test/FixIt/typo.cpp | |
parent | c063ac20d86f8bd19ea98724ca52a446e5c8ee68 (diff) | |
download | bcm5719-llvm-3b22a88488e94f13774322e6e0c575a0651aa149.tar.gz bcm5719-llvm-3b22a88488e94f13774322e6e0c575a0651aa149.zip |
When adding boolean keywords for typo correction, add either "bool" or
"_Bool" (depending on dialect), but not both, since they have the same
edit distance from "Bool".
llvm-svn: 134263
Diffstat (limited to 'clang/test/FixIt/typo.cpp')
-rw-r--r-- | clang/test/FixIt/typo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp index e35a0f54069..3d40da8d256 100644 --- a/clang/test/FixIt/typo.cpp +++ b/clang/test/FixIt/typo.cpp @@ -80,3 +80,9 @@ namespace nonstd { } yarn str4; // expected-error{{unknown type name 'yarn'; did you mean 'nonstd::yarn'?}} + +namespace check_bool { + void f() { + Bool b; // expected-error{{use of undeclared identifier 'Bool'; did you mean 'bool'?}} + } +} |