Files
2025-05-18 13:04:45 +08:00

27 lines
569 B
Plaintext

// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s
// CHECK: Error: "signed" qualifier is illegal with non-integer type "varying float"
int foo() {
signed float x;
}
// CHECK: Error: Can't apply "signed" qualifier to "varying float" type
struct Foo {
signed float x;
};
// CHECK: Error: "signed" qualifier is illegal with non-integer type "varying struct Foo2"
struct Foo2 {
float x;
};
signed Foo2 f;
// CHECK: Error: Illegal to apply both "signed" and "unsigned" qualifiers
int foo4() {
signed unsigned int x;
}