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

16 lines
363 B
Plaintext

// RUN: %{ispc} --target=host --nostdlib --nowrap -h %t.h %s 2>&1
// RUN: FileCheck %s --input-file=%t.h
// RUN: %{cc} -c -x c %t.h
// RUN: %{cc} -c -x c++ %t.h
// CHECK: uint32_t &my_data;
// CHECK: uint32_t *my_data;
// CHECK: use(struct Test &test);
// CHECK: use(struct Test *test);
struct Test {
uint &my_data;
};
export void use(uniform Test &test) {}