summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/typo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-31 08:27:32 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-31 08:27:32 +0000
commit103dae42d7b2f017c3c7b88286ca440f6e240530 (patch)
tree2066d48e76585f62419d385a75b0e830fe80cfe0 /clang/test/FixIt/typo.cpp
parent532e68f1f32e4bcea69c9b1c558511ba010a8a2f (diff)
downloadbcm5719-llvm-103dae42d7b2f017c3c7b88286ca440f6e240530.tar.gz
bcm5719-llvm-103dae42d7b2f017c3c7b88286ca440f6e240530.zip
Add another typo test for nested-name-specifiers
llvm-svn: 92351
Diffstat (limited to 'clang/test/FixIt/typo.cpp')
-rw-r--r--clang/test/FixIt/typo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp
index fb714263925..f869826dc3b 100644
--- a/clang/test/FixIt/typo.cpp
+++ b/clang/test/FixIt/typo.cpp
@@ -19,6 +19,8 @@ other_std::strng str1; // expected-error{{use of undeclared identifier 'other_st
// expected-error{{no type named 'strng' in namespace 'otherstd'; did you mean 'string'?}}
tring str2; // expected-error{{unknown type name 'tring'; did you mean 'string'?}}
+::other_std::string str3; // expected-error{{no member named 'other_std' in the global namespace; did you mean 'otherstd'?}}
+
float area(float radius, float pi) {
return radious * pi; // expected-error{{use of undeclared identifier 'radious'; did you mean 'radius'?}}
}
OpenPOWER on IntegriCloud