Lines Matching refs:r
12 static void test_failure(skiatest::Reporter* r, const char* src, const char* error) { in test_failure() argument
27 REPORTER_ASSERT(r, compiler.errorText() == skError); in test_failure()
30 static void test_success(skiatest::Reporter* r, const char* src) { in test_success() argument
37 REPORTER_ASSERT(r, program); in test_success()
40 DEF_TEST(SkSLUndefinedSymbol, r) { in DEF_TEST() argument
41 test_failure(r, in DEF_TEST()
46 DEF_TEST(SkSLUndefinedFunction, r) { in DEF_TEST() argument
47 test_failure(r, in DEF_TEST()
52 DEF_TEST(SkSLGenericArgumentMismatch, r) { in DEF_TEST() argument
53 test_failure(r, in DEF_TEST()
56 test_failure(r, in DEF_TEST()
59 test_success(r, in DEF_TEST()
63 DEF_TEST(SkSLArgumentCountMismatch, r) { in DEF_TEST() argument
64 test_failure(r, in DEF_TEST()
70 DEF_TEST(SkSLArgumentMismatch, r) { in DEF_TEST() argument
71 test_failure(r, in DEF_TEST()
77 DEF_TEST(SkSLIfTypeMismatch, r) { in DEF_TEST() argument
78 test_failure(r, in DEF_TEST()
83 DEF_TEST(SkSLDoTypeMismatch, r) { in DEF_TEST() argument
84 test_failure(r, in DEF_TEST()
89 DEF_TEST(SkSLWhileTypeMismatch, r) { in DEF_TEST() argument
90 test_failure(r, in DEF_TEST()
95 DEF_TEST(SkSLForTypeMismatch, r) { in DEF_TEST() argument
96 test_failure(r, in DEF_TEST()
101 DEF_TEST(SkSLConstructorTypeMismatch, r) { in DEF_TEST() argument
102 test_failure(r, in DEF_TEST()
105 test_failure(r, in DEF_TEST()
108 test_failure(r, in DEF_TEST()
111 test_failure(r, in DEF_TEST()
114 test_failure(r, in DEF_TEST()
117 test_failure(r, in DEF_TEST()
120 test_failure(r, in DEF_TEST()
123 test_failure(r, in DEF_TEST()
128 DEF_TEST(SkSLConstructorArgumentCount, r) { in DEF_TEST() argument
129 test_failure(r, in DEF_TEST()
133 test_failure(r, in DEF_TEST()
139 DEF_TEST(SkSLSwizzleScalar, r) { in DEF_TEST() argument
140 test_failure(r, in DEF_TEST()
145 DEF_TEST(SkSLSwizzleMatrix, r) { in DEF_TEST() argument
146 test_failure(r, in DEF_TEST()
151 DEF_TEST(SkSLSwizzleOutOfBounds, r) { in DEF_TEST() argument
152 test_failure(r, in DEF_TEST()
157 DEF_TEST(SkSLSwizzleTooManyComponents, r) { in DEF_TEST() argument
158 test_failure(r, in DEF_TEST()
163 DEF_TEST(SkSLSwizzleDuplicateOutput, r) { in DEF_TEST() argument
164 test_failure(r, in DEF_TEST()
169 DEF_TEST(SkSLAssignmentTypeMismatch, r) { in DEF_TEST() argument
170 test_failure(r, in DEF_TEST()
173 test_failure(r, in DEF_TEST()
176 test_success(r, in DEF_TEST()
178 test_failure(r, in DEF_TEST()
183 DEF_TEST(SkSLReturnFromVoid, r) { in DEF_TEST() argument
184 test_failure(r, in DEF_TEST()
189 DEF_TEST(SkSLReturnMissingValue, r) { in DEF_TEST() argument
190 test_failure(r, in DEF_TEST()
195 DEF_TEST(SkSLReturnTypeMismatch, r) { in DEF_TEST() argument
196 test_failure(r, in DEF_TEST()
201 DEF_TEST(SkSLDuplicateFunction, r) { in DEF_TEST() argument
202 test_failure(r, in DEF_TEST()
205 test_success(r, in DEF_TEST()
209 DEF_TEST(SkSLUsingInvalidValue, r) { in DEF_TEST() argument
210 test_failure(r, in DEF_TEST()
213 test_failure(r, in DEF_TEST()
217 DEF_TEST(SkSLDifferentReturnType, r) { in DEF_TEST() argument
218 test_failure(r, in DEF_TEST()
224 DEF_TEST(SkSLDifferentModifiers, r) { in DEF_TEST() argument
225 test_failure(r, in DEF_TEST()
231 DEF_TEST(SkSLDuplicateSymbol, r) { in DEF_TEST() argument
232 test_failure(r, in DEF_TEST()
236 test_failure(r, in DEF_TEST()
240 test_success(r, "int x; void main() { int x; }"); in DEF_TEST()
243 DEF_TEST(SkSLBinaryTypeMismatch, r) { in DEF_TEST() argument
244 test_failure(r, in DEF_TEST()
247 test_failure(r, in DEF_TEST()
250 test_failure(r, in DEF_TEST()
253 test_failure(r, in DEF_TEST()
258 DEF_TEST(SkSLCallNonFunction, r) { in DEF_TEST() argument
259 test_failure(r, in DEF_TEST()
264 DEF_TEST(SkSLInvalidUnary, r) { in DEF_TEST() argument
265 test_failure(r, in DEF_TEST()
268 test_failure(r, in DEF_TEST()
271 test_failure(r, in DEF_TEST()
274 test_failure(r, in DEF_TEST()
277 test_failure(r, in DEF_TEST()
280 test_failure(r, in DEF_TEST()
283 test_failure(r, in DEF_TEST()
286 test_success(r, in DEF_TEST()
290 DEF_TEST(SkSLInvalidAssignment, r) { in DEF_TEST() argument
291 test_failure(r, in DEF_TEST()
294 test_failure(r, in DEF_TEST()
297 test_failure(r, in DEF_TEST()
302 DEF_TEST(SkSLBadIndex, r) { in DEF_TEST() argument
303 test_failure(r, in DEF_TEST()
306 test_failure(r, in DEF_TEST()
311 DEF_TEST(SkSLTernaryMismatch, r) { in DEF_TEST() argument
312 test_failure(r, in DEF_TEST()
315 test_failure(r, in DEF_TEST()
320 DEF_TEST(SkSLInterfaceBlockStorageModifiers, r) { in DEF_TEST() argument
321 test_failure(r, in DEF_TEST()
326 DEF_TEST(SkSLUseWithoutInitialize, r) { in DEF_TEST() argument
327 test_failure(r, in DEF_TEST()
330 test_failure(r, in DEF_TEST()
333 test_failure(r, in DEF_TEST()
336 test_failure(r, in DEF_TEST()
339 test_failure(r, in DEF_TEST()
342 test_failure(r, in DEF_TEST()
348 DEF_TEST(SkSLUnreachable, r) { in DEF_TEST() argument
349 test_failure(r, in DEF_TEST()
352 test_failure(r, in DEF_TEST()
358 test_failure(r, in DEF_TEST()
361 test_failure(r, in DEF_TEST()
366 DEF_TEST(SkSLNoReturn, r) { in DEF_TEST() argument
367 test_failure(r, in DEF_TEST()
372 DEF_TEST(SkSLBreakOutsideLoop, r) { in DEF_TEST() argument
373 test_failure(r, in DEF_TEST()
378 DEF_TEST(SkSLContinueOutsideLoop, r) { in DEF_TEST() argument
379 test_failure(r, in DEF_TEST()
382 test_failure(r, in DEF_TEST()
387 DEF_TEST(SkSLStaticIfError, r) { in DEF_TEST() argument
389 test_failure(r, in DEF_TEST()
392 test_failure(r, in DEF_TEST()
395 test_failure(r, in DEF_TEST()
398 test_failure(r, in DEF_TEST()
403 DEF_TEST(SkSLBadCap, r) { in DEF_TEST() argument
404 test_failure(r, in DEF_TEST()
409 DEF_TEST(SkSLDivByZero, r) { in DEF_TEST() argument
410 test_failure(r, in DEF_TEST()
413 test_failure(r, in DEF_TEST()
416 test_failure(r, in DEF_TEST()
419 test_failure(r, in DEF_TEST()
424 DEF_TEST(SkSLUnsupportedGLSLIdentifiers, r) { in DEF_TEST() argument
425 test_failure(r, in DEF_TEST()
428 test_failure(r, in DEF_TEST()
433 DEF_TEST(SkSLWrongSwitchTypes, r) { in DEF_TEST() argument
434 test_failure(r, in DEF_TEST()
437 test_failure(r, in DEF_TEST()
442 DEF_TEST(SkSLNonConstantCase, r) { in DEF_TEST() argument
443 test_failure(r, in DEF_TEST()
448 DEF_TEST(SkSLDuplicateCase, r) { in DEF_TEST() argument
449 test_failure(r, in DEF_TEST()
454 DEF_TEST(SkSLFieldAfterRuntimeArray, r) { in DEF_TEST() argument
455 test_failure(r, in DEF_TEST()
461 DEF_TEST(SkSLStaticIf, r) { in DEF_TEST() argument
462 test_success(r, in DEF_TEST()
465 test_failure(r, in DEF_TEST()
471 DEF_TEST(SkSLStaticSwitch, r) { in DEF_TEST() argument
472 test_success(r, in DEF_TEST()
480 test_failure(r, in DEF_TEST()
489 test_failure(r, in DEF_TEST()
500 DEF_TEST(SkSLInterfaceBlockScope, r) { in DEF_TEST() argument
501 test_failure(r, in DEF_TEST()
508 DEF_TEST(SkSLDuplicateOutput, r) { in DEF_TEST() argument
509 test_failure(r, in DEF_TEST()