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

13 lines
314 B
Plaintext

// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s
// CHECK: Error: Can't convert between differently sized vector types
void foo(float<3> a, int<2> b) {
a += b;
}
// CHECK: Error: syntax error, unexpected identifier, expecting int
void foo(uniform int i) {
float<i> a;
}