// anyvalue-size-validation.slang //DIAGNOSTIC_TEST:SIMPLE:-target cpp -stage compute -entry main -disable-specialization [anyValueSize(8)] interface IInterface { int doSomething(); }; struct S : IInterface { uint a; uint b; uint c; int doSomething() { return 5; } }; T test(T s) { return s; } [numthreads(4, 1, 1)] void main() { S s; test(s); }