Files
ispc/tests_errors/ref-varying.ispc
Matt Pharr e3cae098fe Update test
2011-12-05 09:27:53 -08:00

10 lines
126 B
Plaintext

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