//META: generated=true
//META: model=claude-opus-4-7
//META: generated_at=2026-05-21T08:00:00+00:00
//META: source_commit=2964da04de136705348240f2bd9affa5f3818226
//META: doc_ref=source/slang/slang-diagnostics.lua
//META: doc_section_digest=8efdef2d780e524d885e0e25253a97915e23062ef3fc13cf23c1972559d7216d
//META: purpose=Fires diagnostic E30700 (output-parameter-cannot-have-default-value) -- an 'out' or 'inout' parameter cannot have a default-value expression
//META: intent=negative
//META: pipeline_stage=check
//META: catalog_code=30700
//META: catalog_name=output-parameter-cannot-have-default-value
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

//DIAGNOSTIC_TEST:SIMPLE(diag=CHECK,non-exhaustive):

void f(out int x = 5) {}
[shader("compute")][numthreads(1,1,1)]
void main() { int y; f(y); }


// CHECK: E30700
