6dda78ac7b
This enables the SkSL error testing logic for runtime effects. The core logic is identical, only the ProgramKind differs. (Error creation scripts: http://go/paste/6413797460803584 with some light post-processing) Change-Id: I877205b3cc1014b50ccccf6037a2f4034c07543e Bug: skia:12665 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/506538 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
11 lines
270 B
Plaintext
11 lines
270 B
Plaintext
// Expect 1 error
|
|
|
|
// Simple recursion is not allowed, even with branching:
|
|
int fibonacci(int n) { return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2); }
|
|
|
|
/*%%*
|
|
potential recursion (function call cycle) not allowed:
|
|
int fibonacci(int n)
|
|
int fibonacci(int n)
|
|
*%%*/
|