1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//TEST_IGNORE_FILE: struct MyHelper { int val; RWStructuredBuffer<int> buf; }; struct Other { int val; }; int test(int inVal, MyHelper helper, Other other) { return inVal + helper.val + helper.buf[inVal] + other.val; }