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

13 lines
331 B
Plaintext

// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s
// CHECK: Error: Illegal to use ^= operator with floating-point
float foo(float a, float b) {
return a ^= b;
}
// CHECK: Error: First operand to binary operator "&" must be an integer or bool
float bar(float a, float b) {
return a & b;
}