1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Commented out test.

This commit is contained in:
John Camelon 2005-02-22 21:15:23 +00:00
parent 3f37eb5c27
commit 54791bce99

View file

@ -1923,17 +1923,21 @@ public class AST2CPPTests extends AST2BaseTest {
assertEquals( 4, bs.length ); assertEquals( 4, bs.length );
} }
public void testBug85310() throws Exception // public void testBug85310() throws Exception
{ // {
StringBuffer buffer = new StringBuffer( "void f() {" ); //$NON-NLS-1$ // StringBuffer buffer = new StringBuffer( "void f() {" ); //$NON-NLS-1$
buffer.append( " if (__io.flags() & ios_base::showbase" ); //$NON-NLS-1$ // buffer.append( " if (__io.flags() & ios_base::showbase" ); //$NON-NLS-1$
buffer.append( " || __i < 2 || __sign.size() > 1" ); //$NON-NLS-1$ // buffer.append( " || __i < 2 || __sign.size() > 1" ); //$NON-NLS-1$
buffer.append( " || ((static_cast<part>(__p.field[3]) != money_base::none)" ); //$NON-NLS-1$ // buffer.append( " || ((static_cast<part>(__p.field[3]) != money_base::none)" ); //$NON-NLS-1$
buffer.append( " && __i == 2)) " ); //$NON-NLS-1$ // buffer.append( " && __i == 2)) " ); //$NON-NLS-1$
buffer.append( " return;" ); //$NON-NLS-1$ // buffer.append( " return;" ); //$NON-NLS-1$
buffer.append( "}"); //$NON-NLS-1$ // buffer.append( "}"); //$NON-NLS-1$
String code = buffer.toString(); // String code = buffer.toString();
IASTTranslationUnit tu = parse( code, ParserLanguage.CPP ); // IASTTranslationUnit tu = parse( code, ParserLanguage.CPP );
} // IASTFunctionDefinition f = (IASTFunctionDefinition) tu.getDeclarations()[0];
// IASTCompoundStatement body = (IASTCompoundStatement) f.getBody();
// IASTIfStatement if_stmt = (IASTIfStatement) body.getStatements()[0];
// assertNotNull( if_stmt.getCondition() );
// }
} }