//META: generated=true
//META: model=claude-opus-5[1m]
//META: generated_at=2026-08-04T00:00:00+00:00
//META: source_commit=7e725f15572c6589ee6d738a8856fb3348f11617
//META: doc_ref=source/slang/slang-diagnostics.lua
//META: doc_section_digest=0bad13735b07dc68811434fd8c089c15ce80460122b55f3f0b482fae95c9d446
//META: purpose=Fires diagnostic E20019 (volatile-not-allowed-on-type) from a minimum-reproduction input.
//META: intent=negative
//META: pipeline_stage=parse
//META: catalog_code=20019
//META: catalog_name=volatile-not-allowed-on-type
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

// Minimum reproduction for diagnostic E20019.

//DIAGNOSTIC_TEST:SIMPLE(diag=CHECK,non-exhaustive):
struct Wrap<T> { T value; }
Wrap<volatile int> w;
void main() { w.value; }

//CHECK: E20019
