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

19 lines
354 B
Plaintext

// RUN: not %{ispc} --target=host --nostdlib --nowrap -o - --emit-llvm-text %s 2>&1 | FileCheck %s
// CHECK-NOT: FATAL ERROR:
struct Quaternion
{
float x;
float y;
float z;
float w;
};
export void QuaternionTestSOA(soa<32> Quaternion a[], uniform unsigned int count)
{
foreach (i = 0 ... count)
{
a[i].x += 1.0;
}
}