Files
ispc/tests_errors/varying-lvalue-to-ref.ispc
2011-12-03 15:35:50 -08:00

8 lines
155 B
Plaintext

// Illegal to pass a "varying" lvalue to a reference parameter
void inc(float &x) { ++x; }
void foo(uniform float a[], int index) {
inc(a[index]);
}