1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Patch for Victor Mozgin.

Fixed PR 39546 : Parser fails on 'signed' casts.
This commit is contained in:
John Camelon 2003-07-29 14:21:07 +00:00
parent a3e052456b
commit 5423bbc79e
5 changed files with 19 additions and 8 deletions

View file

@ -1,3 +1,6 @@
2003-07-28 Victor Mozgin
Moved testBug39546() from ASTFailedTests.java to QuickParseASTTests.java.
2008-07-28 Andrew Niefer
-changes to resources/search/classDecl.cpp
-new search tests:

View file

@ -119,10 +119,7 @@ public class ASTFailedTests extends BaseASTTest
{
assertCodeFailsParse("void f(int a, struct {int b[a];} c) {}");
}
public void testBug39546() throws Exception
{
assertCodeFailsParse("signed char c = (signed char) 0xffffffff;");
}
//Here starts C99-specific section
public void testBug39549() throws Exception
{

View file

@ -1715,4 +1715,10 @@ public class QuickParseASTTests extends BaseASTTest
parse("typedef foo<(U::id > 0)> foobar;");
assertTrue( quickParseCallback.getCompilationUnit().getDeclarations().hasNext() );
}
public void testBug39546() throws Exception
{
parse("signed char c = (signed char) 0xffffffff;");
assertTrue( quickParseCallback.getCompilationUnit().getDeclarations().hasNext() );
}
}

View file

@ -1,3 +1,6 @@
2003-07-29 Victor Mozgin
Fixed PR 39546 : Parser fails on 'signed' casts.
2003-07-28 John Camelon
Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode
Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF.

View file

@ -3244,10 +3244,12 @@ public class Parser implements IParser
{
switch (LT(1))
{
case IToken.t_short :
case IToken.t_unsigned :
case IToken.t_long :
case IToken.t_const :
case IToken.t_signed :
case IToken.t_unsigned :
case IToken.t_short :
case IToken.t_long :
case IToken.t_const :
case IToken.t_volatile :
end = consume();
break;
case IToken.tAMPER :