Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/lit-tests/err-ref-varying.ispc
2025-05-18 13:04:45 +08:00

12 lines
223 B
Plaintext

// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s
// CHECK: Error: Illegal to pass a "varying" lvalue
void foo(float &x) {
++x;
}
void bar(uniform float a[], int i) {
foo(a[i]);
}