diff options
author | Nico Weber <nicolasweber@gmx.de> | 2010-11-22 13:12:28 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2010-11-22 13:12:28 +0000 |
commit | 76f11c953adb0df7ed4c7776538a592435cd7463 (patch) | |
tree | 5c5222708b20e07df7f4144d6bc30f1a98742e48 | |
parent | c43271e3178078758017f76bc9615e0361088a0d (diff) |
Remove one I just added, add a more focused test for why the current code is correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119969 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Parse/ParseExprCXX.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/sourceranges.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index e027e28e9a..1d09fe2a1a 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -912,8 +912,6 @@ void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) { // type-name case tok::annot_typename: { - // FIXME: This should probably pass getAnnotationEndLoc() instead of Loc, - // but that breaks test/Index/recursive-cxx-member-calls.cpp. DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, getTypeAnnotation(Tok)); diff --git a/test/SemaCXX/sourceranges.cpp b/test/SemaCXX/sourceranges.cpp index c3ce279904..602d76baa9 100644 --- a/test/SemaCXX/sourceranges.cpp +++ b/test/SemaCXX/sourceranges.cpp @@ -20,3 +20,8 @@ int main() { // CHECK: CXXNewExpr {{0x[0-9a-fA-F]+}} <col:19, col:28> 'foo::C *' P<foo::C> pr4 = new foo::C; } + +foo::A getName() { + // CHECK: CXXConstructExpr {{0x[0-9a-fA-F]+}} <col:10, col:17> 'foo::class A' + return foo::A(); +} |