summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/typo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-01 21:27:45 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-01 21:27:45 +0000
commit3b22a88488e94f13774322e6e0c575a0651aa149 (patch)
treeacc46538427cc86e27a201fb529bd7c142e37438 /clang/test/FixIt/typo.cpp
parentc063ac20d86f8bd19ea98724ca52a446e5c8ee68 (diff)
downloadbcm5719-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.cpp6
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'?}}
+ }
+}
OpenPOWER on IntegriCloud