public void testNestedTernaryOperator() throws Exception {
TranslationUnit unit = parse("int foo(int a, int b) { int c = a ? 0 : (b ? 1 : 2); }");
FunctionDefinition functionFoo = unit.getChild(0);
VariableDeclaration variableC = functionFoo.getChild(0);
TernaryOperation ternaryOperation = variableC.getExpression(0);
TernaryOperation nestedTernaryOperation = ternaryOperation.getExpression(1);
assertNotNull(nestedTernaryOperation);
}