Update of /cvsroot/cpptool/rfta/src/rftaparser
In directory sc8-pr-cvs1:/tmp/cvs-serv4199/src/rftaparser
Modified Files:
ForStatementParserTest.cpp ForStatementParserTest.h
Log Message:
* added test for parser bug: for ( int a, b;; )
Index: ForStatementParserTest.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rftaparser/ForStatementParserTest.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ForStatementParserTest.cpp 18 Mar 2003 08:11:55 -0000 1.2
--- ForStatementParserTest.cpp 25 Apr 2003 08:19:31 -0000 1.3
***************
*** 101,104 ****
--- 101,105 ----
}
+
void
ForStatementParserTest::testDeclaringFor()
***************
*** 109,113 ****
checkFor ( decl, cond, next );
! };
void
--- 110,123 ----
checkFor ( decl, cond, next );
! }
!
!
! void
! ForStatementParserTest::testForMultipleDeclarations()
! {
! std::string decl( "int a, b" );
! checkFor( decl, "", "" );
! }
!
void
Index: ForStatementParserTest.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rftaparser/ForStatementParserTest.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ForStatementParserTest.h 18 Mar 2003 08:11:55 -0000 1.2
--- ForStatementParserTest.h 25 Apr 2003 08:19:32 -0000 1.3
***************
*** 23,26 ****
--- 23,27 ----
CPPUNIT_TEST( testForNoArgs );
CPPUNIT_TEST( testDeclaringFor );
+ // CPPUNIT_TEST( testForMultipleDeclarations );
CPPUNIT_TEST_SUITE_END();
***************
*** 37,40 ****
--- 38,42 ----
void testForNoArgs();
void testDeclaringFor();
+ void testForMultipleDeclarations();
private:
|