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:
parent
7f8bb368ea
commit
13c13d4da8
|
@ -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));
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue