Issue error if &=, |=, ^=, <<=, or >>= used with floats.
This commit is contained in:
5
tests_errors/float-logical-1.ispc
Normal file
5
tests_errors/float-logical-1.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// First operand to binary operator "&" must be an integer or bool
|
||||
|
||||
float foo(float a, float b) {
|
||||
return a & b;
|
||||
}
|
||||
5
tests_errors/float-logical.ispc
Normal file
5
tests_errors/float-logical.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// Illegal to use ^= operator with floating-point
|
||||
|
||||
float foo(float a, float b) {
|
||||
return a ^= b;
|
||||
}
|
||||
Reference in New Issue
Block a user