Remove one I just added, add a more focused test for why the current code is correct.

llvm-svn: 119969
This commit is contained in:
Nico Weber 2010-11-22 13:12:28 +00:00
parent 7f8bb368ea
commit 13c13d4da8
2 changed files with 5 additions and 2 deletions

View File

@ -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));

View File

@ -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();
}