}
public void testPointerVariable() throws Exception {
TranslationUnit unit = parse(
"void main() { int *p = 0, a = 0, *pp = 0; }");
FunctionDefinition functionMain = unit.getChild(0);
VariableDeclaration variableP = functionMain.getChild(0);
assertEquals("p", variableP.getName());
assertEquals("int", variableP.getType());
assertTrue(variableP.isPointer());
VariableDeclaration variableA = functionMain.getChild(1);
assertEquals("a", variableA.getName());
assertEquals("int", variableA.getType());
assertFalse(variableA.isPointer());
VariableDeclaration variablePP = functionMain.getChild(2);
assertEquals("pp", variablePP.getName());
assertEquals("int", variablePP.getType());
assertTrue(variablePP.isPointer());
}