diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-09 00:57:24 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-09 00:57:24 +0000 |
commit | 70cd574857c6023b8c60e325c4029a23f716c2dd (patch) | |
tree | 2db44e7047a000dbb2597741851c7f87bacd125a /test/CXX | |
parent | 94dcb0947c393ff77f6da09970c197fb651631c0 (diff) | |
download | clang-70cd574857c6023b8c60e325c4029a23f716c2dd.tar.gz |
When typo-correcting a function name, consider correcting to a type name
for a function-style cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/class/class.mem/p1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/class/class.mem/p1.cpp b/test/CXX/class/class.mem/p1.cpp index a41f1dbb75..3bd1df99d1 100644 --- a/test/CXX/class/class.mem/p1.cpp +++ b/test/CXX/class/class.mem/p1.cpp @@ -9,14 +9,14 @@ struct S static int v; //expected-error{{redefinition of 'v' as different kind of symbol}} int v; //expected-error{{duplicate member 'v'}} static int v; //expected-error{{redefinition of 'v' as different kind of symbol}} - enum EnumT { E = 10 }; + enum EnumT { E = 10 }; // expected-note {{declared here}} friend struct M; struct X; //expected-note{{forward declaration of 'S::X'}} friend struct X; }; S::EnumT Evar = S::E; // ok -S::EnumT Evar2 = EnumT(); //expected-error{{use of undeclared identifier 'EnumT'}} +S::EnumT Evar2 = EnumT(); //expected-error{{use of undeclared identifier 'EnumT'; did you mean 'S::EnumT'?}} S::M m; //expected-error{{no type named 'M' in 'S'}} S::X x; //expected-error{{variable has incomplete type 'S::X'}} |