| 57 | } |
| 58 | |
| 59 | ExpressionComma* |
| 60 | ExpressionComma::make_random(CGContext &cg_context, const Type* type, const CVQualifiers* qfer) |
| 61 | { |
| 62 | Expression* lhs = Expression::make_random(cg_context, NULL, NULL, false, true); |
| 63 | Expression* rhs = Expression::make_random(cg_context, type, qfer, false, false); |
| 64 | // typecast, if needed. |
| 65 | if(CGOptions::lang_cpp()) |
| 66 | cast_if_needed(rhs); |
| 67 | ExpressionComma* ec = new ExpressionComma(*lhs, *rhs); |
| 68 | return ec; |
| 69 | } |
| 70 | |
| 71 | ExpressionComma::ExpressionComma(const Expression& l, const Expression& r) |
| 72 | : Expression(eCommaExpr), |
nothing calls this directly
no test coverage detected