Lines Matching full:error
12 static void test_failure(skiatest::Reporter* r, const char* src, const char* error) { in test_failure() argument
22 SkSL::String skError(error); in test_failure()
24 SkDebugf("SKSL ERROR:\n source: %s\n expected: %s received: %s", src, error, in test_failure()
43 "error: 1: expected expression, but found '='\n1 error\n"); in DEF_TEST()
49 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
55 "error: 1: unknown identifier 'foo'\n1 error\n"); in DEF_TEST()
61 "error: 1: no match for sin(int, int)\n1 error\n"); in DEF_TEST()
64 "error: 1: no match for sin(bool)\n1 error\n"); in DEF_TEST()
73 "error: 1: call to 'foo' expected 1 argument, but found 2\n1 error\n"); in DEF_TEST()
80 "error: 1: expected 'float', but found 'bool'\n1 error\n"); in DEF_TEST()
86 "error: 1: expected 'bool', but found 'int'\n1 error\n"); in DEF_TEST()
92 "error: 1: expected 'bool', but found 'float2'\n1 error\n"); in DEF_TEST()
98 "error: 1: expected 'bool', but found 'float3'\n1 error\n"); in DEF_TEST()
104 "error: 1: expected 'bool', but found 'int'\n1 error\n"); in DEF_TEST()
110 "error: 1: expected 'float', but found 'bool'\n1 error\n"); in DEF_TEST()
113 "error: 1: 'bool2' is not a valid parameter to 'float2' constructor\n1 error\n"); in DEF_TEST()
116 "error: 1: 'float2' is not a valid parameter to 'bool2' constructor\n1 error\n"); in DEF_TEST()
119 "error: 1: cannot construct 'bool'\n1 error\n"); in DEF_TEST()
122 "error: 1: cannot construct 'foo'\n1 error\n"); in DEF_TEST()
125 …"error: 1: invalid argument to 'float' constructor (expected a number or bool, but found 'foo')\n1… in DEF_TEST()
128 "error: 1: 'foo' is not a valid parameter to 'float2' constructor\n1 error\n"); in DEF_TEST()
131 "error: 1: expected 'float', but found 'bool'\n1 error\n"); in DEF_TEST()
137 "error: 1: invalid arguments to 'float3' constructor (expected 3 scalars, but " in DEF_TEST()
138 "found 2)\n1 error\n"); in DEF_TEST()
141 … "error: 1: invalid arguments to 'float3' constructor (expected 3 scalars, but found " in DEF_TEST()
142 "4)\n1 error\n"); in DEF_TEST()
148 "error: 1: cannot swizzle value of type 'float'\n1 error\n"); in DEF_TEST()
154 "error: 1: cannot swizzle value of type 'float2x2'\n1 error\n"); in DEF_TEST()
160 "error: 1: invalid swizzle component 'z'\n1 error\n"); in DEF_TEST()
166 "error: 1: too many components in swizzle mask 'xxxxx'\n1 error\n"); in DEF_TEST()
172 "error: 1: cannot write to the same swizzle field more than once\n1 error\n"); in DEF_TEST()
178 "error: 1: cannot write to a swizzle mask containing a constant\n1 error\n"); in DEF_TEST()
184 "error: 1: expected 'int', but found 'float'\n1 error\n"); in DEF_TEST()
187 "error: 1: type mismatch: '=' cannot operate on 'int', 'float'\n1 error\n"); in DEF_TEST()
192 "error: 1: type mismatch: '*=' cannot operate on 'int3', 'float'\n1 error\n"); in DEF_TEST()
198 "error: 1: may not return a value from a void function\n1 error\n"); in DEF_TEST()
204 "error: 1: expected function to return 'int'\n1 error\n"); in DEF_TEST()
210 "error: 1: expected 'int', but found 'float'\n1 error\n"); in DEF_TEST()
216 "error: 1: duplicate definition of void main()\n1 error\n"); in DEF_TEST()
224 "error: 1: expected '(' to begin constructor invocation\n1 error\n"); in DEF_TEST()
227 "error: 1: expected '(' to begin function call\n1 error\n"); in DEF_TEST()
232 "error: 1: functions 'void main()' and 'int main()' differ only in return type\n1 " in DEF_TEST()
233 "error\n"); in DEF_TEST()
239 "error: 1: modifiers on parameter 1 differ between declaration and definition\n1 " in DEF_TEST()
240 "error\n"); in DEF_TEST()
246 "error: 1: symbol 'main' was already defined\n1 error\n"); in DEF_TEST()
250 "error: 1: symbol 'x' was already defined\n1 error\n"); in DEF_TEST()
258 "error: 1: type mismatch: '*' cannot operate on 'int', 'bool'\n1 error\n"); in DEF_TEST()
261 "error: 1: type mismatch: '||' cannot operate on 'int', 'float'\n1 error\n"); in DEF_TEST()
264 "error: 1: type mismatch: '==' cannot operate on 'float2', 'int'\n1 error\n"); in DEF_TEST()
267 "error: 1: type mismatch: '!=' cannot operate on 'float2', 'int'\n1 error\n"); in DEF_TEST()
273 "error: 1: 'x' is not a function\n1 error\n"); in DEF_TEST()
279 "error: 1: '++' cannot operate on 'float4x4'\n1 error\n"); in DEF_TEST()
282 "error: 1: '--' cannot operate on 'float3'\n1 error\n"); in DEF_TEST()
285 "error: 1: '++' cannot operate on 'float4x4'\n1 error\n"); in DEF_TEST()
288 "error: 1: '--' cannot operate on 'float3'\n1 error\n"); in DEF_TEST()
291 "error: 1: '!' cannot operate on 'int'\n1 error\n"); in DEF_TEST()
294 "error: 1: '+' cannot operate on 'foo'\n1 error\n"); in DEF_TEST()
297 "error: 1: '-' cannot operate on 'foo'\n1 error\n"); in DEF_TEST()
305 "error: 1: cannot assign to '1'\n1 error\n"); in DEF_TEST()
308 "error: 1: cannot modify immutable variable 'x'\n1 error\n"); in DEF_TEST()
311 "error: 1: cannot modify immutable variable 'x'\n1 error\n"); in DEF_TEST()
317 "error: 1: expected array, but found 'int'\n1 error\n"); in DEF_TEST()
320 "error: 1: expected array, but found 'float'\n1 error\n"); in DEF_TEST()
326 "error: 1: ternary operator result mismatch: 'bool', 'float'\n1 error\n"); in DEF_TEST()
329 "error: 1: ternary operator result mismatch: 'float3', 'float'\n1 error\n"); in DEF_TEST()
335 "error: 1: interface block fields may not have storage qualifiers\n1 error\n"); in DEF_TEST()
341 "error: 1: 'x' has not been assigned\n1 error\n"); in DEF_TEST()
344 "error: 1: 'i' has not been assigned\n1 error\n"); in DEF_TEST()
347 "error: 1: 'r' has not been assigned\n1 error\n"); in DEF_TEST()
350 "error: 1: 'x' has not been assigned\n1 error\n"); in DEF_TEST()
353 "error: 1: 'x' has not been assigned\n1 error\n"); in DEF_TEST()
357 "error: 1: 'x' has not been assigned\n1 error\n"); in DEF_TEST()
363 "error: 1: unreachable\n1 error\n"); in DEF_TEST()
366 "error: 1: unreachable\n1 error\n"); in DEF_TEST()
369 "error: 1: unreachable\n1 error\n");*/ in DEF_TEST()
372 "error: 1: unreachable\n1 error\n"); in DEF_TEST()
375 "error: 1: unreachable\n1 error\n"); in DEF_TEST()
381 "error: 1: function can exit without returning a value\n1 error\n"); in DEF_TEST()
387 "error: 1: break statement must be inside a loop or switch\n1 error\n"); in DEF_TEST()
393 "error: 1: continue statement must be inside a loop\n1 error\n"); in DEF_TEST()
396 "error: 1: continue statement must be inside a loop\n1 error\n"); in DEF_TEST()
403 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
406 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
409 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
412 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
418 "error: 1: unknown capability flag 'bugFreeDriver'\n1 error\n"); in DEF_TEST()
424 "error: 1: division by zero\n1 error\n"); in DEF_TEST()
427 "error: 1: division by zero\n1 error\n"); in DEF_TEST()
430 "error: 1: division by zero\n1 error\n"); in DEF_TEST()
433 "error: 1: division by zero\n1 error\n"); in DEF_TEST()
439 "error: 1: unknown identifier 'gl_FragCoord'\n1 error\n"); in DEF_TEST()
442 "error: 1: unknown identifier 'gl_FragColor'\n1 error\n"); in DEF_TEST()
448 "error: 1: expected 'int', but found 'float2'\n1 error\n"); in DEF_TEST()
451 "error: 1: expected 'int', but found 'float2'\n1 error\n"); in DEF_TEST()
457 "error: 1: case value must be a constant\n1 error\n"); in DEF_TEST()
463 "error: 1: duplicate case value\n1 error\n"); in DEF_TEST()
469 "error: 1: only the last entry in an interface block may be a runtime-sized " in DEF_TEST()
470 "array\n1 error\n"); in DEF_TEST()
480 "error: 1: static if has non-static test\n1 error\n"); in DEF_TEST()
500 "error: 1: static switch has non-static test\n1 error\n"); in DEF_TEST()
509 "error: 1: static switch contains non-static conditional break\n1 error\n"); in DEF_TEST()
517 "error: 1: unknown identifier 'x'\n1 error\n"); in DEF_TEST()
523 "error: 1: out location=0, index=0 is reserved for sk_FragColor\n1 error\n"); in DEF_TEST()
529 "error: 1: only the last swizzle component can be a constant\n1 error\n"); in DEF_TEST()