Fix test.

llvm-svn: 74358
This commit is contained in:
Anders Carlsson 2009-06-26 23:44:14 +00:00
parent 5d8b6eef5a
commit bae2737202
1 changed files with 7 additions and 0 deletions

View File

@ -1278,6 +1278,13 @@ bool Parser::ParseOptionalTypeSpecifier(DeclSpec &DS, int& isInvalid,
ParseDecltypeSpecifier(DS);
return true;
// C++0x auto support.
case tok::kw_auto:
if (!getLang().CPlusPlus0x)
return false;
isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec);
break;
case tok::kw___ptr64:
case tok::kw___w64:
case tok::kw___cdecl: