//META: generated=true
//META: model=claude-opus-4-7
//META: generated_at=2026-05-20T21:00:00+00:00
//META: source_commit=3250005059a2746ebc504a9d3f71ed112f1f2b94
//META: doc_ref=docs/generated/design/ast-reference/expressions.md#literalexpr-family
//META: doc_section_digest=d2c639013cf026698511f9f1297a9f9de18bc449514e7113fc9483c45007d835
//META: purpose=Verifies that the int8 base type round-trips the documented MIN (-128) and MAX (127) literal values through evaluation.
//META: intent=boundary
//META: pipeline_stage=check
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

// Small-int boundary: int8's MIN/MAX edges. The constructor form
// `int8_t(N)` invokes a TypeCastExpr that must preserve the value
// at the boundary of the type's representable range.

//TEST:INTERPRET(filecheck=CHECK):

void main()
{
    int8_t a = int8_t(-128);
    int8_t b = int8_t(127);
    // CHECK: min=-128
    printf("min=%d\n", int(a));
    // CHECK: max=127
    printf("max=%d\n", int(b));
}
