X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Finvalid_expressions.glsl;h=2e67b76e01db0675ffc0a0d68ecce9a41109cb96;hb=03880839dcd2c067061ac5491083159a9fd06611;hp=cf27c9a5f0d1a2a5d8a52de90aa462c15ecf0e99;hpb=50ab5ca2babc8d9592903da6072a13b381ed6656;p=libs%2Fgl.git diff --git a/tests/glsl/invalid_expressions.glsl b/tests/glsl/invalid_expressions.glsl index cf27c9a5..2e67b76e 100644 --- a/tests/glsl/invalid_expressions.glsl +++ b/tests/glsl/invalid_expressions.glsl @@ -4,20 +4,27 @@ void main() int i = 1.0; bool b = 0; i = b; + i *= b; float f = b; - i+b; + f+b; + i /= f; mat3x2 m; vec3 v; m*m; v*m; + ivec3 iv; + i<:4: Initializing a variable of type 'int' with an expression of type 'float' -:5: Initializing a variable of type 'bool' with an expression of type 'int' -:6: Assignment to variable of type 'int' from expression of type 'bool' -:7: Initializing a variable of type 'float' with an expression of type 'bool' -:8: No matching operator '+' found for 'int' and 'bool' -:11: No matching operator '*' found for 'mat3x2' and 'mat3x2' -:12: No matching operator '*' found for 'vec3' and 'mat3x2' +:4: Initializing a variable of type 'int' with an expression of incompatible type 'float' +:5: Initializing a variable of type 'bool' with an expression of incompatible type 'int' +:6: Assignment to variable of type 'int' from expression of incompatible type 'bool' +:7: No matching operator '*' found for 'int' and 'bool' +:8: Initializing a variable of type 'float' with an expression of incompatible type 'bool' +:9: No matching operator '+' found for 'float' and 'bool' +:10: No matching operator '/' found for 'int' and 'float' +:13: No matching operator '*' found for 'mat3x2' and 'mat3x2' +:14: No matching operator '*' found for 'vec3' and 'mat3x2' +:16: No matching operator '<<' found for 'int' and 'ivec3' */