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

23 lines
451 B
Plaintext

// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s
// CHECK: Error: "void" type illegal for struct member
struct Foo {
void x;
};
// CHECK: Error: "void" type global variable is illegal
void x;
// CHECK: Error: "void" type variable illegal in declaration
int func1() {
void x;
}
// CHECK: Error: Parameter with type "void" illegal in function parameter list
void func2(void x, void y) {
return x+y;
}