]> granicus.if.org Git - clang/commitdiff
Add another typo test for nested-name-specifiers
authorDouglas Gregor <dgregor@apple.com>
Thu, 31 Dec 2009 08:27:32 +0000 (08:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 31 Dec 2009 08:27:32 +0000 (08:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92351 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/typo.cpp

index fb714263925f5cae4700ac59f3866bd2902ab729..f869826dc3b0b4f3556af1af465d48423ac50c52 100644 (file)
@@ -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'?}}
 }